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:
Michał Górny
2020-04-12 12:34:41 +02:00
parent 475fe589e7
commit 1aafbb4cda
3 changed files with 17 additions and 0 deletions

View 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'):