commit | 53dd6c99b39d90935c00bc1558582e494641248e | [log] [tgz] |
---|---|---|
author | Inada Naoki <songofacandy@gmail.com> | Thu Apr 29 20:37:32 2021 +0900 |
committer | GitHub <noreply@github.com> | Thu Apr 29 20:37:32 2021 +0900 |
tree | d91a9dade307365e49dab2d59632ee814cdd11be | |
parent | abfd6388cdba376a72686df52a9a98b2d558271b [diff] |
bpo-43651: Fix test_logging (GH-25715)
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 0f1d274..ee00a32 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py
@@ -1582,8 +1582,7 @@ def cleanup(h1, fn): h1.close() os.remove(fn) - #with self.check_no_resource_warning(): - if 1: + with self.check_no_resource_warning(): fd, fn = tempfile.mkstemp(".log", "test_logging-X-") os.close(fd)