mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-45401: Fix a resource warning in test_logging (GH-28864)
This commit is contained in:
parent
1a7892414e
commit
15188b115a
1 changed files with 1 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue