summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-06-29 17:15:43 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2013-06-29 17:15:43 (GMT)
commitc4565a95244f45fc8868816d62a43764bb678e11 (patch)
treebf8523887fbdaa7b2c812f35fc9fb821f27cc02b /Doc
parent95a3f11f95f0f1a3c35b431f9ea745cc9340a07c (diff)
downloadcpython-c4565a95244f45fc8868816d62a43764bb678e11.zip
cpython-c4565a95244f45fc8868816d62a43764bb678e11.tar.gz
cpython-c4565a95244f45fc8868816d62a43764bb678e11.tar.bz2
Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/unittest.rst2
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::