11 Jan
2014
11 Jan
'14
11:10 p.m.
On 01/11/2014 05:37 PM, Brett Cannon wrote:
You're assuming the context manager is doing something magical to verify that all calls in the block raise the expected exception. What you want to do is execute it in a loop::
for test in (...): with support.check_warnings(("automatic int conversions have been deprecated", DeprecationWarning), quiet=False): exec(test)
Well, this is test.support! I expect magic! ;) Thanks for setting me straight, got it working. -- ~Ethan~