mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +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
|
|
@ -65,7 +65,7 @@ def checkInvalidParam(self, widget, name, value, errmsg=None):
|
|||
orig = widget[name]
|
||||
if errmsg is not None:
|
||||
errmsg = errmsg.format(re.escape(str(value)))
|
||||
errmsg = fr'\A{errmsg}\Z'
|
||||
errmsg = fr'\A{errmsg}\z'
|
||||
with self.assertRaisesRegex(tkinter.TclError, errmsg or ''):
|
||||
widget[name] = value
|
||||
self.assertEqual(widget[name], orig)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue