mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.10] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH-30104)
This commit is contained in:
parent
503803d8c1
commit
908fd691f9
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue