summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/python-unittest2-python3-compat.patch
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-09-05 22:19:58 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:30 +0100
commit227a0e669aca54875c21db7a6e5baf511608bce4 (patch)
tree4a41197722b43aba553da2f1a1ac54421d6cd30d /gnu/packages/patches/python-unittest2-python3-compat.patch
parent3e2152b065080a880246a0a479c77f253ad937ff (diff)
gnu: Remove python-unittest2.
This package is no longer needed as per: "unittest2 is a backport of the new features added to the unittest testing framework in Python 2.7 and onwards.", it has no users in Guix. * gnu/packages/check.scm (python-unittest2): Delete variable. * gnu/local.mk (dist_patch_DATA): Deregister 2 patches. * gnu/packages/patches/python-unittest2-python3-compat.patch: Delete file. * gnu/packages/patches/python-unittest2-remove-argparse.patch: Likewise. Change-Id: I7d67223cdd5a0e656a299d83ac28248d7db7c321
Diffstat (limited to 'gnu/packages/patches/python-unittest2-python3-compat.patch')
-rw-r--r--gnu/packages/patches/python-unittest2-python3-compat.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/gnu/packages/patches/python-unittest2-python3-compat.patch b/gnu/packages/patches/python-unittest2-python3-compat.patch
deleted file mode 100644
index 68fbccacd06..00000000000
--- a/gnu/packages/patches/python-unittest2-python3-compat.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-Skip tests that fail with newer versions of Python.
-
-Patch copied from Gentoo:
-
-https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/unittest2/files/unittest2-1.1.0-python3.5-test.patch
-
-diff --git a/unittest2/test/test_loader.py b/unittest2/test/test_loader.py
-index 683f662..347eea5 100644
---- a/unittest2/test/test_loader.py
-+++ b/unittest2/test/test_loader.py
-@@ -509,6 +509,7 @@ class Test_TestLoader(unittest2.TestCase):
- #
- # What happens when an impossible name is given, relative to the provided
- # `module`?
-+ @unittest.skipIf(sys.version_info[:2] >= (3, 5), "python 3.5 has problems here")
- def test_loadTestsFromName__relative_malformed_name(self):
- loader = unittest.TestLoader()
-
-@@ -811,6 +812,7 @@ class Test_TestLoader(unittest2.TestCase):
- # TestCase or TestSuite instance."
- #
- # What happens when presented with an impossible module name?
-+ @unittest.skipIf(sys.version_info[:2] >= (3, 5), "python 3.5 has problems here")
- def test_loadTestsFromNames__malformed_name(self):
- loader = unittest2.TestLoader()
-
-@@ -918,6 +920,7 @@ class Test_TestLoader(unittest2.TestCase):
- # "The method optionally resolves name relative to the given module"
- #
- # What happens when presented with an impossible attribute name?
-+ @unittest.skipIf(sys.version_info[:2] >= (3, 5), "python 3.5 has problems here")
- def test_loadTestsFromNames__relative_malformed_name(self):
- loader = unittest.TestLoader()
-
-diff --git a/unittest2/compatibility.py b/unittest2/compatibility.py
-index 9e5f1a5..2d20c19 100644
---- a/unittest2/compatibility.py
-+++ b/unittest2/compatibility.py
-@@ -140,6 +140,6 @@ except ImportError:
- ### ChainMap (helper for configparser and string.Template)
- ########################################################################
-
--class ChainMap(collections.MutableMapping):
-+class ChainMap(collections.abc.MutableMapping):
- ''' A ChainMap groups multiple dicts (or other mappings) together
- to create a single, updateable view.