Commit c4565a95 authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.

parent 95a3f11f
...@@ -873,7 +873,7 @@ Test cases ...@@ -873,7 +873,7 @@ Test cases
a regular expression object or a string containing a regular expression a regular expression object or a string containing a regular expression
suitable for use by :func:`re.search`. Examples:: suitable for use by :func:`re.search`. Examples::
self.assertRaisesRegex(ValueError, 'invalid literal for.*XYZ$', self.assertRaisesRegex(ValueError, "invalid literal for.*XYZ'$",
int, 'XYZ') int, 'XYZ')
or:: or::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment