]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Dec 2021 17:27:22 +0000 (09:27 -0800)
committerGitHub <noreply@github.com>
Tue, 14 Dec 2021 17:27:22 +0000 (17:27 +0000)
Lib/test/test_logging.py

index 858adc72b46a3c963f928f4b1529628423e40441..363ea29d3af2f7f8c1b4007b78f722821d7189b2 100644 (file)
@@ -5301,7 +5301,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: