Skip to content

Commit

Permalink
[3.10] bpo-46063: Add 'delay=True' to file handler initialization. (G…
Browse files Browse the repository at this point in the history
  • Loading branch information
miss-islington committed Dec 14, 2021
1 parent 503803d commit 908fd69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_logging.py
Expand Up @@ -5425,7 +5425,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 908fd69

Please sign in to comment.