]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 29 Jun 2013 17:15:43 +0000 (13:15 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sat, 29 Jun 2013 17:15:43 +0000 (13:15 -0400)
Doc/library/unittest.rst

index 85d1ce619074e532011385f6f3a772e0f94f9e3c..52347ccc10672c74ae12fe24d7abf43778101946 100644 (file)
@@ -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::