diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-10-11 11:54:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 11:54:44 +0300 |
commit | 15188b115a2da815556053372c912a81a74be43b (patch) | |
tree | 9f40b80118a06df42e98f7976099633080ec241a | |
parent | 1a7892414e654aa5c99efa31db767baba7f4a424 (diff) | |
download | cpython-git-15188b115a2da815556053372c912a81a74be43b.tar.gz |
bpo-45401: Fix a resource warning in test_logging (GH-28864)
-rw-r--r-- | Lib/test/test_logging.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index b5885b985a..85b6e5f392 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -5324,6 +5324,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest): 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): |