mirror of
https://github.com/python/cpython
synced 2024-10-03 01:14:14 +00:00
bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)
This commit is contained in:
parent
1cbb88736c
commit
850aefc2c6
|
@ -5451,7 +5451,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:
|
||||
|
|
Loading…
Reference in a new issue