bpo-45401: Fix a resource warning in test_logging (GH-28864)

This commit is contained in:
Serhiy Storchaka 2021-10-11 11:54:44 +03:00 committed by GitHub
parent 1a7892414e
commit 15188b115a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):