[arch-commits] Commit in python-parameterized/trunk (2 files)

Felix Yan felixonmars at archlinux.org
Mon Dec 30 08:22:18 UTC 2019


    Date: Monday, December 30, 2019 @ 08:22:17
  Author: felixonmars
Revision: 544132

upgpkg: python-parameterized 0.7.1-1

Added:
  python-parameterized/trunk/skip_Documentation_tests.patch
Modified:
  python-parameterized/trunk/PKGBUILD

--------------------------------+
 PKGBUILD                       |   13 +++++++------
 skip_Documentation_tests.patch |   20 ++++++++++++++++++++
 2 files changed, 27 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-30 08:21:10 UTC (rev 544131)
+++ PKGBUILD	2019-12-30 08:22:17 UTC (rev 544132)
@@ -1,8 +1,8 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-parameterized
-pkgver=0.7.0
-pkgrel=3
+pkgver=0.7.1
+pkgrel=1
 pkgdesc="Parameterized testing with any Python test framework"
 url="https://github.com/wolever/parameterized"
 license=('BSD')
@@ -11,13 +11,14 @@
 makedepends=('python-setuptools')
 checkdepends=('python-nose' 'python-mock')
 source=("https://pypi.io/packages/source/p/parameterized/parameterized-$pkgver.tar.gz"
-         parameterized-python-3.8.patch::"https://patch-diff.githubusercontent.com/raw/wolever/parameterized/pull/75.patch")
-sha512sums=('b76e18a7eee62fcab4385fd5d053253c096d4c3fc3a6300e8539afc4d8decc995e533085297c52f8a26411d2591a326033a740cc30a250d510aa1c11ee904246'
-            'a6b36cf4883990ed89db81effebcdc4630f645d91b0538dde3a6ed9d383c311668c0c23429b5693f34270bba338c011148e0dab4d064a6821a5fd82486f73232')
+        skip_Documentation_tests.patch)
+sha512sums=('331752b6bf27f88921d39567a58900c0e78f1740056d93755fc7e4528a032207f81e4938302c27cdfd82fe2ad455c01100d91da5f222a11e4bcf0210de68d9c2'
+            '70a2408e954c8d19dc80b8de472f0d83d8ae44a7360f72855236ce2c239dde417c9e1bad2ad09855c1538e99e228a4cc1a2e81c6d2edf9fa1718f7cb400f2d54')
 
 prepare() {
   cd parameterized-$pkgver
-  patch -p1 -i ../parameterized-python-3.8.patch # Fix tests with python 3.8
+  # https://github.com/wolever/parameterized/issues/84
+  patch -p1 -i ../skip_Documentation_tests.patch
 }
 
 build() {

Added: skip_Documentation_tests.patch
===================================================================
--- skip_Documentation_tests.patch	                        (rev 0)
+++ skip_Documentation_tests.patch	2019-12-30 08:22:17 UTC (rev 544132)
@@ -0,0 +1,20 @@
+--- a/parameterized/test.py
++++ b/parameterized/test.py
+@@ -2,7 +2,8 @@
+ 
+ import inspect
+ import mock
+-from unittest import TestCase
++import sys
++from unittest import TestCase, skipIf
+ from nose.tools import assert_equal, assert_raises
+ 
+ from .parameterized import (
+@@ -241,6 +242,7 @@ class TestParamerizedOnTestCase(TestCase
+         missing_tests.remove("%s(%r, bar=%r)" %(expected_name, foo, bar))
+ 
+ 
++ at skipIf(sys.version_info[:2] >= (3, 8), "Doesn't work with Python 3.8")
+ class TestParameterizedExpandDocstring(TestCase):
+     def _assert_docstring(self, expected_docstring, rstrip=False):
+         """ Checks the current test method's docstring. Must be called directly



More information about the arch-commits mailing list