Replace whole repo with latest content from branch stream-1.0.2-rhel-8.8.0

Content corresponds with RHEL dist-git commit 2e6ca9d
This commit is contained in:
Honza Horak 2023-05-15 20:06:06 +02:00
parent d404d42d96
commit 139f634345
3 changed files with 1 additions and 90 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
SOURCES/funcsigs-1.0.2.tar.gz
/funcsigs-1.0.2.tar.gz /funcsigs-1.0.2.tar.gz

View File

@ -1,88 +0,0 @@
diff -rU3 funcsigs-1.0.2.orig/setup.py funcsigs-1.0.2/setup.py
--- funcsigs-1.0.2.orig/setup.py 2016-04-26 00:01:13.000000000 +0200
+++ funcsigs-1.0.2/setup.py 2019-09-26 17:15:43.693886370 +0200
@@ -47,6 +47,5 @@
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules'
],
- tests_require = ['unittest2'],
- test_suite = 'unittest2.collector',
+ test_suite = 'tests',
)
diff -rU3 funcsigs-1.0.2.orig/tests/test_formatannotation.py funcsigs-1.0.2/tests/test_formatannotation.py
--- funcsigs-1.0.2.orig/tests/test_formatannotation.py 2016-04-05 23:32:14.000000000 +0200
+++ funcsigs-1.0.2/tests/test_formatannotation.py 2019-09-26 16:49:30.174351893 +0200
@@ -1,6 +1,6 @@
import funcsigs
-import unittest2 as unittest
+import unittest
class TestFormatAnnotation(unittest.TestCase):
def test_string (self):
diff -rU3 funcsigs-1.0.2.orig/tests/test_funcsigs.py funcsigs-1.0.2/tests/test_funcsigs.py
--- funcsigs-1.0.2.orig/tests/test_funcsigs.py 2016-04-05 23:32:14.000000000 +0200
+++ funcsigs-1.0.2/tests/test_funcsigs.py 2019-09-26 16:49:26.315366071 +0200
@@ -1,4 +1,4 @@
-import unittest2 as unittest
+import unittest
import doctest
import sys
diff -rU3 funcsigs-1.0.2.orig/tests/test_inspect.py funcsigs-1.0.2/tests/test_inspect.py
--- funcsigs-1.0.2.orig/tests/test_inspect.py 2016-04-05 23:32:14.000000000 +0200
+++ funcsigs-1.0.2/tests/test_inspect.py 2019-09-26 17:05:25.946939291 +0200
@@ -3,13 +3,24 @@
import collections
import functools
import sys
+import contextlib
-import unittest2 as unittest
+import unittest
import funcsigs as inspect
+if not hasattr(unittest.TestCase, 'assertRaisesRegex'):
+ class TestCase(unittest.TestCase):
+ @contextlib.contextmanager
+ def assertRaisesRegex(self, error, message):
+ with self.assertRaises(error) as cm:
+ yield cm
+ self.assertRegexpMatches(str(cm.exception), message)
+else:
+ TestCase = unittest.TestCase
-class TestSignatureObject(unittest.TestCase):
+
+class TestSignatureObject(TestCase):
@staticmethod
def signature(func):
sig = inspect.signature(func)
@@ -647,7 +658,7 @@
""")
-class TestParameterObject(unittest.TestCase):
+class TestParameterObject(TestCase):
def test_signature_parameter_kinds(self):
P = inspect.Parameter
@@ -761,7 +772,7 @@
p.kind = 123
-class TestSignatureBind(unittest.TestCase):
+class TestSignatureBind(TestCase):
@staticmethod
def call(func, *args, **kwargs):
sig = inspect.signature(func)
@@ -975,7 +986,7 @@
self.assertEqual((an_f, 10), partial_f(*ba.args, **ba.kwargs))
-class TestBoundArguments(unittest.TestCase):
+class TestBoundArguments(TestCase):
def test_signature_bound_arguments_unhashable(self):
def foo(a): pass

View File

@ -1 +1 @@
SHA512 (funcsigs-1.0.2.tar.gz) = 4e583bb7081bb1d6c0fe5a6935ca03032d562b93ef5c11b51a72ce9e7ac12902451cc2233c7e6f70440629d88d8e6e9625965ee408100b80b0024f3a6204afda 7e583285b1fb8a76305d6d68f4ccc14e funcsigs-1.0.2.tar.gz