Message210804
The two signatures of assertRaisesRegex are:
assertRaisesRegex(exception, regex, callable, *args, **kwds)
assertRaisesRegex(exception, regex, msg=None)
IIUC what you are saying is that if you forget the regex and call assertRaisesRegex(exception, callable) the test will pass.
I think it would be ok to add a check to see if the second argument is a callable or None (or maybe check if it's a string or regex object?), and give an appropriate error message if it's not. |
|
Date |
User |
Action |
Args |
2014-02-10 07:52:29 | ezio.melotti | set | recipients:
+ ezio.melotti, michael.foord, the.mulhern |
2014-02-10 07:52:29 | ezio.melotti | set | messageid: <1392018749.75.0.384275358723.issue20145@psf.upfronthosting.co.za> |
2014-02-10 07:52:29 | ezio.melotti | link | issue20145 messages |
2014-02-10 07:52:29 | ezio.melotti | create | |
|