]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43651: Fix test_logging (GH-25715)
authorInada Naoki <songofacandy@gmail.com>
Thu, 29 Apr 2021 11:37:32 +0000 (20:37 +0900)
committerGitHub <noreply@github.com>
Thu, 29 Apr 2021 11:37:32 +0000 (20:37 +0900)
Lib/test/test_logging.py

index 0f1d2745dddbbb10653d96330b52670a3b6042f4..ee00a32026f65ec39c72f73f4f1aa60b198f3d20 100644 (file)
@@ -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)