aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-22 14:12:47 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-08 09:24:40 +0200
commitf35b24827f873e73ad897beff6640f1007706daf (patch)
treee93b31c36879bc5fcb52c7fb39bb6b53152faa2e
parentdistutils: make -OO enable both opt-1 and opt-2 optimization (diff)
downloadcpython-f35b24827f873e73ad897beff6640f1007706daf.tar.gz
cpython-f35b24827f873e73ad897beff6640f1007706daf.tar.bz2
cpython-f35b24827f873e73ad897beff6640f1007706daf.zip
Blacklist test_pickletools from __all__ test as it imports numpy
The test imports numpy, bringing its warnings along with it and causing the test to fail.
-rw-r--r--Lib/test/test___all__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py
index 1ec83cb0b14..4675814956a 100644
--- a/Lib/test/test___all__.py
+++ b/Lib/test/test___all__.py
@@ -98,6 +98,8 @@ class AllTest(unittest.TestCase):
denylist = 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'):