summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-11-01 17:18:15 +0100
committerJustin Lecher <jlec@gentoo.org>2015-11-02 12:47:12 +0100
commitf6c9500bd2ec056679a51f99e971823b717f9a1a (patch)
treee36b888feaeb1ca90bac16554a253a6aa0b43d5a /dev-python/unittest2/files
parentdev-python/funcsigs: Drop unsupported pypy3 (diff)
downloadgentoo-f6c9500bd2ec056679a51f99e971823b717f9a1a.tar.gz
gentoo-f6c9500bd2ec056679a51f99e971823b717f9a1a.tar.bz2
gentoo-f6c9500bd2ec056679a51f99e971823b717f9a1a.zip
dev-python/unittest2: Fix for test failures in python3.5
Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/unittest2/files')
-rw-r--r--dev-python/unittest2/files/unittest2-1.1.0-python3.5-test.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/unittest2/files/unittest2-1.1.0-python3.5-test.patch b/dev-python/unittest2/files/unittest2-1.1.0-python3.5-test.patch
new file mode 100644
index 000000000000..78d71c9dc6eb
--- /dev/null
+++ b/dev-python/unittest2/files/unittest2-1.1.0-python3.5-test.patch
@@ -0,0 +1,28 @@
+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()
+