]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] 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:00 +0000 (09:27 -0800)
committerGitHub <noreply@github.com>
Tue, 14 Dec 2021 17:27:00 +0000 (17:27 +0000)
Lib/test/test_logging.py

index b74f20156ffd84d5cb16ea4ca85840f02759d895..40411b448848357f8cc5e687438cdd0dae808cc6 100644 (file)
@@ -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: