[Python-checkins] bpo-43651: Fix test_logging (GH-25715)

methane webhook-mailer at python.org
Thu Apr 29 07:37:42 EDT 2021


https://github.com/python/cpython/commit/53dd6c99b39d90935c00bc1558582e494641248e
commit: 53dd6c99b39d90935c00bc1558582e494641248e
branch: master
author: Inada Naoki <songofacandy at gmail.com>
committer: methane <songofacandy at gmail.com>
date: 2021-04-29T20:37:32+09:00
summary:

bpo-43651: Fix test_logging (GH-25715)

files:
M Lib/test/test_logging.py

diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 0f1d2745dddbb..ee00a32026f65 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)
 



More information about the Python-checkins mailing list