diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2013-06-29 17:15:43 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2013-06-29 17:15:43 (GMT) |
commit | c4565a95244f45fc8868816d62a43764bb678e11 (patch) | |
tree | bf8523887fbdaa7b2c812f35fc9fb821f27cc02b /Doc/library | |
parent | 95a3f11f95f0f1a3c35b431f9ea745cc9340a07c (diff) | |
download | cpython-c4565a95244f45fc8868816d62a43764bb678e11.zip cpython-c4565a95244f45fc8868816d62a43764bb678e11.tar.gz cpython-c4565a95244f45fc8868816d62a43764bb678e11.tar.bz2 |
Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/unittest.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 85d1ce6..52347cc 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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:: |