Skip to content

Commit 908fd69

Browse files
[3.10] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH-30104)
1 parent 503803d commit 908fd69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_logging.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5425,7 +5425,8 @@ def test_compute_files_to_delete(self):
54255425
p = os.path.join(wd, '%s.log' % prefix)
54265426
rotator = logging.handlers.TimedRotatingFileHandler(p, when='s',
54275427
interval=5,
5428-
backupCount=7)
5428+
backupCount=7,
5429+
delay=True)
54295430
rotators.append(rotator)
54305431
if prefix.startswith('a.b'):
54315432
for t in times:

0 commit comments

Comments
 (0)