]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 15 May 2020 16:22:54 +0000 (09:22 -0700)
committerGitHub <noreply@github.com>
Fri, 15 May 2020 16:22:54 +0000 (09:22 -0700)
commit7ef275160953f00b4303149df6d919c0afe763cb
tree2fd5b7c3a3318b6fc610e585be9ce2092ab92122
parent6ad51a1fd6715d8266a43a4a89d496cf0615aace
bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095)

distutils.tests now saves/restores warnings filters to leave them
unchanged. Importing tests imports docutils which imports
pkg_resources which adds a warnings filter.
(cherry picked from commit 6e57237faf0da8904e0130a11350cae3c5062b82)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/distutils/tests/__init__.py
Misc/NEWS.d/next/Tests/2020-05-15-01-21-44.bpo-40055.Xp4aP9.rst [new file with mode: 0644]