]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41003: Fix test_copyreg when numpy is installed (GH-20935)
authorVictor Stinner <vstinner@python.org>
Wed, 17 Jun 2020 16:07:13 +0000 (18:07 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Jun 2020 16:07:13 +0000 (18:07 +0200)
commit8362893e3fe083df2ec8bb94c28b1a78383eadbf
treec485a614b45419ebbd2b648de6e8e2efa2279515
parent8e34e92caa73259620dd242b92d26edd0949b4ba
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.
Lib/distutils/tests/__init__.py
Lib/test/pickletester.py
Lib/test/support/warnings_helper.py
Misc/NEWS.d/next/Tests/2020-06-17-15-07-14.bpo-41003.tiH_Fy.rst [new file with mode: 0644]