mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.
This commit is contained in:
parent
95a3f11f95
commit
c4565a9524
1 changed files with 1 additions and 1 deletions
|
@ -873,7 +873,7 @@ Test cases
|
|||
a regular expression object or a string containing a regular expression
|
||||
suitable for use by :func:`re.search`. Examples::
|
||||
|
||||
self.assertRaisesRegex(ValueError, 'invalid literal for.*XYZ$',
|
||||
self.assertRaisesRegex(ValueError, "invalid literal for.*XYZ'$",
|
||||
int, 'XYZ')
|
||||
|
||||
or::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue