Skip to content

Commit 0958ee0

Browse files
committed
Use os_helper.create_empty_file() in the test
1 parent 81719a9 commit 0958ee0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/test/test_logging.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6909,7 +6909,7 @@ def test_rollover_backup_exists(self):
69096909
rolloverAt = fh.rolloverAt
69106910
dfn = self.fn + time.strftime(".%Y-%m-%d_%H-%M-%S",
69116911
time.gmtime(rolloverAt - 1))
6912-
open(dfn, 'w').close()
6912+
os_helper.create_empty_file(dfn)
69136913
self.rmfiles.append(dfn)
69146914
with patch('time.time', return_value=rolloverAt):
69156915
fh.doRollover()

0 commit comments

Comments
 (0)