]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41003: Fix test_copyreg when numpy is installed (GH-20935) (GH-20945) (GH-20946)
authorVictor Stinner <vstinner@python.org>
Wed, 17 Jun 2020 17:09:49 +0000 (19:09 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Jun 2020 17:09:49 +0000 (19:09 +0200)
commit3d974b2fc681ddd0ec722cf631008d5941da52b8
treea95d07129031b90350b62f956bed5a07b55d6968
parent071bed842eeff9673bc5c4f64e3916a151132d2a
bpo-41003: Fix test_copyreg when numpy is installed (GH-20935) (GH-20945) (GH-20946)

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.

(cherry picked from commit 8362893e3fe083df2ec8bb94c28b1a78383eadbf)
(cherry picked from commit b39d41ba1b77f7bc51c4d6f6d0e336693192cb3a)
Lib/distutils/tests/__init__.py
Lib/test/pickletester.py
Lib/test/support/__init__.py
Misc/NEWS.d/next/Tests/2020-06-17-15-07-14.bpo-41003.tiH_Fy.rst [new file with mode: 0644]