Skip to content

Commit 850aefc

Browse files
authored
bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)
1 parent 1cbb887 commit 850aefc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_logging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5451,7 +5451,8 @@ def test_compute_files_to_delete(self):
54515451
p = os.path.join(wd, '%s.log' % prefix)
54525452
rotator = logging.handlers.TimedRotatingFileHandler(p, when='s',
54535453
interval=5,
5454-
backupCount=7)
5454+
backupCount=7,
5455+
delay=True)
54555456
rotators.append(rotator)
54565457
if prefix.startswith('a.b'):
54575458
for t in times:

0 commit comments

Comments
 (0)