From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 14 Dec 2021 17:27:22 +0000 (-0800) Subject: [3.9] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH... X-Git-Tag: v3.9.10~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17260e44b5ed3508e3c15f1b7ded761879e91d3e;p=thirdparty%2FPython%2Fcpython.git [3.9] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH-30105) --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 858adc72b46a..363ea29d3af2 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -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: