Re: [Python-Dev] cpython: #20145: assert[Raises|Warns]Regex now raise TypeError on bad regex.
23 Mar
2014
23 Mar
'14
2:43 p.m.
On Sun, 23 Mar 2014 20:47:28 +0100 (CET)
r.david.murray
http://hg.python.org/cpython/rev/ec556e45641a changeset: 89936:ec556e45641a user: R David Murray
date: Sun Mar 23 15:08:43 2014 -0400 summary: #20145: assert[Raises|Warns]Regex now raise TypeError on bad regex. Previously a non-string, non-regex second argument could cause the test to always pass.
It seems like this would be useful to fix in 3.4 too. Regards Antoine.
3658
Age (days ago)
3659
Last active (days ago)
3 comments
3 participants
participants (3)
-
Antoine Pitrou
-
R. David Murray
-
Terry Reedy