Skip to content

Commit

Permalink
[3.9] bpo-46063: Add 'delay=True' to file handler initialization. (GH…
Browse files Browse the repository at this point in the history
  • Loading branch information
miss-islington authored Dec 14, 2021
1 parent 9423422 commit 17260e4
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 @@ -5301,7 +5301,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 17260e4

Please sign in to comment.