summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-12 12:34:41 +0200
committerMichał Górny <mgorny@gentoo.org>2020-04-12 13:29:49 +0200
commit1aafbb4cdaf3067e41a772660b28dc1843ae4e8d (patch)
tree96774a2e8563419dad3ab1b537b671d2ac99d6b2 /dev-lang/python/files
parentmedia-sound/gnome-sound-recorder: bump to 3.34.0 (diff)
downloadgentoo-1aafbb4cdaf3067e41a772660b28dc1843ae4e8d.tar.gz
gentoo-1aafbb4cdaf3067e41a772660b28dc1843ae4e8d.tar.bz2
gentoo-1aafbb4cdaf3067e41a772660b28dc1843ae4e8d.zip
dev-lang/python: Fix test failure due to importing numpy in 3.8+
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-lang/python/files')
-rw-r--r--dev-lang/python/files/test-__all__-numpy.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-lang/python/files/test-__all__-numpy.patch b/dev-lang/python/files/test-__all__-numpy.patch
new file mode 100644
index 000000000000..1b91abbf6f60
--- /dev/null
+++ b/dev-lang/python/files/test-__all__-numpy.patch
@@ -0,0 +1,13 @@
+diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py
+index c077881511..0728bef6c4 100644
+--- a/Lib/test/test___all__.py
++++ b/Lib/test/test___all__.py
+@@ -71,6 +71,8 @@ class AllTest(unittest.TestCase):
+ blacklist = set([
+ # Will raise a SyntaxError when compiling the exec statement
+ '__future__',
++ # imports numpy which causes warnings
++ 'test.test_pickletools',
+ ])
+
+ if not sys.platform.startswith('java'):