summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/python-unittest2-python3-compat.patch
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2017-10-26 12:45:11 +0300
committerEfraim Flashner <efraim@flashner.co.il>2017-10-26 12:45:11 +0300
commiteda8a841ac7457ffe05c4a4248d6dff074b72326 (patch)
treee39ae185dc350d278d1f498460ac50b96956686f /gnu/packages/patches/python-unittest2-python3-compat.patch
parentb7883b111d92746ff3bedb6f4bb4c1578068fc59 (diff)
parent49c620e0685a0bbe40ff69159a9ca562ba02ca7f (diff)
Merge remote-tracking branch 'origin/python-updates' into core-updates
Diffstat (limited to 'gnu/packages/patches/python-unittest2-python3-compat.patch')
-rw-r--r--gnu/packages/patches/python-unittest2-python3-compat.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/patches/python-unittest2-python3-compat.patch b/gnu/packages/patches/python-unittest2-python3-compat.patch
new file mode 100644
index 0000000000..fe0afe559a
--- /dev/null
+++ b/gnu/packages/patches/python-unittest2-python3-compat.patch
@@ -0,0 +1,34 @@
+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()
+