]> 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:25:00 +0000 (09:25 -0700)
committerGitHub <noreply@github.com>
Fri, 15 May 2020 16:25:00 +0000 (09:25 -0700)
commit4e6545b002dd4d068b2538ffca60830d0e7fd369
treec1a724746718e4353ca5952df1720073172e3db5
parent07bd5cf3d9551ae84100e6400836163fcd507f07
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]