[Python-checkins] cpython (3.3): Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.

terry.reedy python-checkins at python.org
Sat Jun 29 19:16:45 CEST 2013


http://hg.python.org/cpython/rev/b3d19f0494e7
changeset:   84372:b3d19f0494e7
branch:      3.3
parent:      84366:c15d0baac3d6
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Sat Jun 29 13:15:43 2013 -0400
summary:
  Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.

files:
  Doc/library/unittest.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
--- 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::

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list