Skip to content

Commit faa87f7

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

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
@@ -5174,6 +5174,7 @@ def test_should_not_rollover(self):
51745174
time.sleep(1.1) # a little over a second ...
51755175
r = logging.makeLogRecord({'msg': 'testing - device file'})
51765176
self.assertFalse(fh.shouldRollover(r))
5177+
fh.close()
51775178

51785179
# other test methods added below
51795180
def test_rollover(self):

0 commit comments

Comments
 (0)