[issue18237] unittest.assertRaisesRegex(p) example is wrong in docs

2013-06-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I went with adding ' after changing '...' to "...". If you think you might ever submit a more substantial patch, and we hope you do, please submit a Contributor Agreement (now optionally electronic). http://www.python.org/psf/contrib/ When processed (a week?),

[issue18237] unittest.assertRaisesRegex(p) example is wrong in docs

2013-06-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a714fea95ef by Terry Jan Reedy in branch '2.7': Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner. http://hg.python.org/cpython/rev/4a714fea95ef New changeset b3d19f0494e7 by Terry Jan Reedy in branch '3.3': Issue #18237: Fix asser

[issue18237] unittest.assertRaisesRegex(p) example is wrong in docs

2013-06-21 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue18237] unittest.assertRaisesRegex(p) example is wrong in docs

2013-06-17 Thread Berker Peksag
Changes by Berker Peksag : -- versions: -Python 3.1, Python 3.2, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18237] unittest.assertRaisesRegex(p) example is wrong in docs

2013-06-16 Thread Jeff Tratner
New submission from Jeff Tratner: One of the examples for assertRaisesRegex(p) is wrong by one character. Current is: self.assertRaisesRegexp(ValueError, 'invalid literal for.*XYZ$', int, 'XYZ') The $ at the end is wrong because the actual error message is "ValueError: