summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-17 16:07:13 (GMT)
committerGitHub <noreply@github.com>2020-06-17 16:07:13 (GMT)
commit8362893e3fe083df2ec8bb94c28b1a78383eadbf (patch)
treec485a614b45419ebbd2b648de6e8e2efa2279515 /Misc
parent8e34e92caa73259620dd242b92d26edd0949b4ba (diff)
downloadcpython-8362893e3fe083df2ec8bb94c28b1a78383eadbf.zip
cpython-8362893e3fe083df2ec8bb94c28b1a78383eadbf.tar.gz
cpython-8362893e3fe083df2ec8bb94c28b1a78383eadbf.tar.bz2
bpo-41003: Fix test_copyreg when numpy is installed (GH-20935)
Fix test_copyreg when numpy is installed: test.pickletester now saves/restores warnings.filters when importing numpy, to ignore filters installed by numpy. Add the save_restore_warnings_filters() function to the test.support.warnings_helper module.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Tests/2020-06-17-15-07-14.bpo-41003.tiH_Fy.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2020-06-17-15-07-14.bpo-41003.tiH_Fy.rst b/Misc/NEWS.d/next/Tests/2020-06-17-15-07-14.bpo-41003.tiH_Fy.rst
new file mode 100644
index 0000000..6f908d9
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2020-06-17-15-07-14.bpo-41003.tiH_Fy.rst
@@ -0,0 +1,3 @@
+Fix ``test_copyreg`` when ``numpy`` is installed: ``test.pickletester`` now
+saves/restores warnings filters when importing ``numpy``, to ignore filters
+installed by ``numpy``.