]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40275: Avoid importing logging in test.support (GH-19601)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 25 Apr 2020 08:35:18 +0000 (11:35 +0300)
committerGitHub <noreply@github.com>
Sat, 25 Apr 2020 08:35:18 +0000 (11:35 +0300)
commit515fce4fc4bb0d2db97b17df275cf90640017f56
tree472b80622f4f7e7a8307c3f4db4122eef549dbd9
parent16994912c93e8e5db7365d48b75d67d3f70dd7b2
bpo-40275: Avoid importing logging in test.support (GH-19601)

Import logging lazily in assertLogs() in unittest.
Move TestHandler from test.support to logging_helper.
Doc/library/test.rst
Lib/test/support/__init__.py
Lib/test/support/logging_helper.py [new file with mode: 0644]
Lib/test/test_logging.py
Lib/unittest/_log.py [new file with mode: 0644]
Lib/unittest/case.py
Misc/NEWS.d/next/Library/2020-04-20-19-06-55.bpo-40275.9UcN2g.rst [new file with mode: 0644]