summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_logging.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index b74f20156f..40411b4488 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -5425,7 +5425,8 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
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: