aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2025-05-03 17:58:49 +0300
committerGitHub <noreply@github.com>2025-05-03 17:58:49 +0300
commit84a08f8629dffae355407cc3239c981a2b7a930a (patch)
treeef4d1322b70cf6c107eb2397d44240b40fb67454 /Lib/test/test_logging.py
parentadd0ca9ea00ab02fd3a58d059e8370c2d0a1d32c (diff)
downloadcpython-84a08f8629dffae355407cc3239c981a2b7a930a.tar.gz
cpython-84a08f8629dffae355407cc3239c981a2b7a930a.zip
gh-133306: Use \z instead of \Z in regular expressions in the stdlib (GH-133337)
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index de9108288a7..3f113ec1be4 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -6740,7 +6740,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
rotator = rotators[i]
candidates = rotator.getFilesToDelete()
self.assertEqual(len(candidates), n_files - backupCount, candidates)
- matcher = re.compile(r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}-\d{2}\Z")
+ matcher = re.compile(r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}-\d{2}\z")
for c in candidates:
d, fn = os.path.split(c)
self.assertStartsWith(fn, prefix+'.')