mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
dev-lang/python: Fix test failure due to importing numpy in 3.8+
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
13
dev-lang/python/files/test-__all__-numpy.patch
Normal file
13
dev-lang/python/files/test-__all__-numpy.patch
Normal file
@@ -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'):
|
||||
Reference in New Issue
Block a user