diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-04-25 08:35:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 08:35:18 (GMT) |
commit | 515fce4fc4bb0d2db97b17df275cf90640017f56 (patch) | |
tree | 472b80622f4f7e7a8307c3f4db4122eef549dbd9 /Misc | |
parent | 16994912c93e8e5db7365d48b75d67d3f70dd7b2 (diff) | |
download | cpython-515fce4fc4bb0d2db97b17df275cf90640017f56.zip cpython-515fce4fc4bb0d2db97b17df275cf90640017f56.tar.gz cpython-515fce4fc4bb0d2db97b17df275cf90640017f56.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-04-20-19-06-55.bpo-40275.9UcN2g.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-04-20-19-06-55.bpo-40275.9UcN2g.rst b/Misc/NEWS.d/next/Library/2020-04-20-19-06-55.bpo-40275.9UcN2g.rst new file mode 100644 index 0000000..09e0a97 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-04-20-19-06-55.bpo-40275.9UcN2g.rst @@ -0,0 +1,2 @@ +The :mod:`logging` package is now imported lazily in :mod:`unittest` only +when the :meth:`~unittest.TestCase.assertLogs` assertion is used. |