From: Inada Naoki Date: Thu, 29 Apr 2021 11:37:32 +0000 (+0900) Subject: bpo-43651: Fix test_logging (GH-25715) X-Git-Tag: v3.10.0b1~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53dd6c99b39d90935c00bc1558582e494641248e;p=thirdparty%2FPython%2Fcpython.git bpo-43651: Fix test_logging (GH-25715) --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 0f1d2745dddb..ee00a32026f6 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1582,8 +1582,7 @@ class ConfigFileTest(BaseTest): 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)