summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-12-14 17:27:00 (GMT)
committerGitHub <noreply@github.com>2021-12-14 17:27:00 (GMT)
commit908fd691f96403a3c30d85c17dd74ed1f26a60fd (patch)
tree09689da5820658c78633cbb5e5bad7b54a33dc7f
parent503803d8c19be91becc09ca59f3febcbc324d6d2 (diff)
downloadcpython-908fd691f96403a3c30d85c17dd74ed1f26a60fd.zip
cpython-908fd691f96403a3c30d85c17dd74ed1f26a60fd.tar.gz
cpython-908fd691f96403a3c30d85c17dd74ed1f26a60fd.tar.bz2
[3.10] bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) (GH-30104)
-rw-r--r--Lib/test/test_logging.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index b74f201..40411b4 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -5425,7 +5425,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: