Skip to content

Commit 47a50fe

Browse files
bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28872)
(cherry picked from commit 15188b1) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 3d7009e commit 47a50fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_logging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5298,6 +5298,7 @@ def test_should_not_rollover(self):
52985298
time.sleep(1.1) # a little over a second ...
52995299
r = logging.makeLogRecord({'msg': 'testing - device file'})
53005300
self.assertFalse(fh.shouldRollover(r))
5301+
fh.close()
53015302

53025303
# other test methods added below
53035304
def test_rollover(self):

0 commit comments

Comments
 (0)