From d55d702d42319b7667bee13a7c4163be9904b7b7 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 11 Oct 2021 10:56:32 +0300 Subject: [PATCH] bpo-45401: Fix a resource warning in test_logging --- Lib/test/test_logging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index b5885b985afd31..85b6e5f3921113 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -5324,6 +5324,7 @@ def test_should_not_rollover(self): time.sleep(1.1) # a little over a second ... r = logging.makeLogRecord({'msg': 'testing - device file'}) self.assertFalse(fh.shouldRollover(r)) + fh.close() # other test methods added below def test_rollover(self):