From 8baee7be1358405591a70616b96d1ae69af57a04 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Thu, 29 Apr 2021 19:50:16 +0900 Subject: [PATCH] bpo-43651: Fix test_logging --- Lib/test/test_logging.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 0f1d2745dddbbb..ee00a32026f65e 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)