mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-133306: Use \z instead of \Z in regular expressions in the stdlib (GH-133337)
This commit is contained in:
parent
add0ca9ea0
commit
84a08f8629
16 changed files with 23 additions and 23 deletions
|
@ -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+'.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue