diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2021-12-14 16:46:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 16:46:07 +0000 |
commit | 850aefc2c651110a784cd5478af9774b1f6287a3 (patch) | |
tree | a42781b135f8154ae2051b4b5b320ca00fb3d1b7 /Lib/test/test_logging.py | |
parent | 1cbb88736c32ac30fd530371adf53fe7554be0a5 (diff) | |
download | cpython-850aefc2c651110a784cd5478af9774b1f6287a3.tar.gz cpython-850aefc2c651110a784cd5478af9774b1f6287a3.zip |
bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index c85d26e4bab..e61ccdf86bd 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: |