Skip to content

Commit 17260e4

Browse files
[3.9] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH-30105)
1 parent 9423422 commit 17260e4

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
@@ -5301,7 +5301,8 @@ def test_compute_files_to_delete(self):
53015301
p = os.path.join(wd, '%s.log' % prefix)
53025302
rotator = logging.handlers.TimedRotatingFileHandler(p, when='s',
53035303
interval=5,
5304-
backupCount=7)
5304+
backupCount=7,
5305+
delay=True)
53055306
rotators.append(rotator)
53065307
if prefix.startswith('a.b'):
53075308
for t in times:

0 commit comments

Comments
 (0)