[Python-checkins] [3.9] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH-30105)

vsajip webhook-mailer at python.org
Tue Dec 14 12:27:27 EST 2021


https://github.com/python/cpython/commit/17260e44b5ed3508e3c15f1b7ded761879e91d3e
commit: 17260e44b5ed3508e3c15f1b7ded761879e91d3e
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: vsajip <vinay_sajip at yahoo.co.uk>
date: 2021-12-14T17:27:22Z
summary:

[3.9] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH-30105)

files:
M Lib/test/test_logging.py

diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 858adc72b46a3..363ea29d3af2f 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -5301,7 +5301,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