]> granicus.if.org Git - python/commit
backport: #20145: assert[Raises|Warns]Regex now raise TypeError on bad regex.
authorR David Murray <rdmurray@bitdance.com>
Tue, 25 Mar 2014 19:31:50 +0000 (15:31 -0400)
committerR David Murray <rdmurray@bitdance.com>
Tue, 25 Mar 2014 19:31:50 +0000 (15:31 -0400)
commitef1c26798ca95d10d29979c6fef77ac3b6f27c26
tree074534905e338281d8f9937635becd0cd27bc86e
parent87d13ea56d58851c35952aa8dac24168fceac15a
backport: #20145: assert[Raises|Warns]Regex now raise TypeError on bad regex.

Previously a non-string, non-regex second argument and missing callable
argument could cause the test to appear to always pass.

Initial patch by Kamilla Holanda.
Lib/unittest/case.py
Lib/unittest/test/test_case.py
Misc/ACKS
Misc/NEWS