[issue20145] unittest.assert*Regex functions should verify that expected_regex has a valid type
Kamilla
report at bugs.python.org
Wed Mar 12 00:51:24 CET 2014
Kamilla added the comment:
Applying changes as suggested by R. David Murray in the Core-mentorship e-mail list.
Instead of doing the if tests I've replaced the existing
if isinstance(expected_regex, (bytes, str)):
by
if expected_regex is not None:
And also made a change in one of the tests because I figure out it was wrong.
----------
Added file: http://bugs.python.org/file34364/validate_regex_improved.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20145>
_______________________________________
More information about the Python-bugs-list
mailing list