From: Vinay Sajip Date: Tue, 14 Dec 2021 16:46:07 +0000 (+0000) Subject: bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) X-Git-Tag: v3.11.0a4~199 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=850aefc2c651110a784cd5478af9774b1f6287a3;p=thirdparty%2FPython%2Fcpython.git bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index c85d26e4bab6..e61ccdf86bde 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -5451,7 +5451,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: