mirror of https://github.com/python/cpython
Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.
This commit is contained in:
parent
95a3f11f95
commit
c4565a9524
|
@ -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…
Reference in New Issue