Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.
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 @@
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::