From 139f6343454a62466efe930f9a86d27062c2c774 Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Mon, 15 May 2023 20:06:06 +0200 Subject: [PATCH] Replace whole repo with latest content from branch stream-1.0.2-rhel-8.8.0 Content corresponds with RHEL dist-git commit 2e6ca9d --- .gitignore | 1 - no-unittest2.patch | 88 ---------------------------------------------- sources | 2 +- 3 files changed, 1 insertion(+), 90 deletions(-) delete mode 100644 no-unittest2.patch diff --git a/.gitignore b/.gitignore index 1cf5c71..123be5b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -SOURCES/funcsigs-1.0.2.tar.gz /funcsigs-1.0.2.tar.gz diff --git a/no-unittest2.patch b/no-unittest2.patch deleted file mode 100644 index 1a4448c..0000000 --- a/no-unittest2.patch +++ /dev/null @@ -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 diff --git a/sources b/sources index 372aeb4..dabf58b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (funcsigs-1.0.2.tar.gz) = 4e583bb7081bb1d6c0fe5a6935ca03032d562b93ef5c11b51a72ce9e7ac12902451cc2233c7e6f70440629d88d8e6e9625965ee408100b80b0024f3a6204afda +7e583285b1fb8a76305d6d68f4ccc14e funcsigs-1.0.2.tar.gz