Skip to content

Commit

Permalink
bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsajip committed Dec 14, 2021
1 parent 1cbb887 commit 850aefc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -5451,7 +5451,8 @@ def test_compute_files_to_delete(self):
p = os.path.join(wd, '%s.log' % prefix)
rotator = logging.handlers.TimedRotatingFileHandler(p, when='s',
interval=5,
backupCount=7)
backupCount=7,
delay=True)
rotators.append(rotator)
if prefix.startswith('a.b'):
for t in times:
Expand Down

0 comments on commit 850aefc

Please sign in to comment.