[Python-checkins] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)
vsajip
webhook-mailer at python.org
Tue Dec 14 11:46:39 EST 2021
https://github.com/python/cpython/commit/850aefc2c651110a784cd5478af9774b1f6287a3
commit: 850aefc2c651110a784cd5478af9774b1f6287a3
branch: main
author: Vinay Sajip <vinay_sajip at yahoo.co.uk>
committer: vsajip <vinay_sajip at yahoo.co.uk>
date: 2021-12-14T16:46:07Z
summary:
bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103)
files:
M Lib/test/test_logging.py
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index c85d26e4bab69..e61ccdf86bdea 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -5451,7 +5451,8 @@ def test_compute_files_to_delete(self):
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:
More information about the Python-checkins
mailing list