Message72851
With a name like catch_warnings() in the warnings module, it will
definitely get used in production code to suppress warnings. If its
intended to be used only by tests, then it belongs somewhere else. If
not test_support then maybe unittest. If it were moved then I wouldn't
care about the bug that all other warnings caught are inaccessible.
You'd still have to fix the w.messages attribute to be None if there
were no warnings raised. |
|
Date |
User |
Action |
Args |
2008-09-09 12:20:45 | barry | set | recipients:
+ barry, brett.cannon, exarkun, ncoghlan, pitrou, benjamin.peterson |
2008-09-09 12:20:44 | barry | set | messageid: <1220962844.97.0.865609986432.issue3781@psf.upfronthosting.co.za> |
2008-09-09 12:20:44 | barry | link | issue3781 messages |
2008-09-09 12:20:44 | barry | create | |
|