Message213110
I've implemented a piece of code to check if the expected_regex is a string or regex object. If it's not it raises a TypeError exception. The check is inside the __init__ method of the _AssertRaisesBaseContext class so it will always check the expected_regex in all methods that use the _AssertRaises.
I've added tests too. They are verifying the assertRaisesRegex and the assertWarnsRegex methods. |
|
Date |
User |
Action |
Args |
2014-03-11 01:28:33 | kamie | set | recipients:
+ kamie, pitrou, ezio.melotti, r.david.murray, michael.foord, the.mulhern |
2014-03-11 01:28:32 | kamie | set | messageid: <1394501312.91.0.159347308754.issue20145@psf.upfronthosting.co.za> |
2014-03-11 01:28:32 | kamie | link | issue20145 messages |
2014-03-11 01:28:32 | kamie | create | |
|