Author kamie
Recipients ezio.melotti, kamie, michael.foord, pitrou, r.david.murray, the.mulhern
Date 2014-03-11.01:28:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394501312.91.0.159347308754.issue20145@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-03-11 01:28:33kamiesetrecipients: + kamie, pitrou, ezio.melotti, r.david.murray, michael.foord, the.mulhern
2014-03-11 01:28:32kamiesetmessageid: <1394501312.91.0.159347308754.issue20145@psf.upfronthosting.co.za>
2014-03-11 01:28:32kamielinkissue20145 messages
2014-03-11 01:28:32kamiecreate