From c4565a95244f45fc8868816d62a43764bb678e11 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sat, 29 Jun 2013 13:15:43 -0400 Subject: Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner. --- Doc/library/unittest.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:: -- cgit v0.12