diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-10-11 08:54:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 08:54:44 (GMT) |
commit | 15188b115a2da815556053372c912a81a74be43b (patch) | |
tree | 9f40b80118a06df42e98f7976099633080ec241a | |
parent | 1a7892414e654aa5c99efa31db767baba7f4a424 (diff) | |
download | cpython-15188b115a2da815556053372c912a81a74be43b.zip cpython-15188b115a2da815556053372c912a81a74be43b.tar.gz cpython-15188b115a2da815556053372c912a81a74be43b.tar.bz2 |
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 b5885b9..85b6e5f 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): |