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

(cherry picked from commit 15188b115a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2021-10-12 00:18:43 -07:00 committed by GitHub
parent 23528905d4
commit faa87f7f3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5174,6 +5174,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):