Message225280
Ouch. I've just been bitten by the fact that unittest enables all warnings by default in 3.4, and this change would definitely make things worse. I would like to see a simple, documented way of disabling this new behaviour. I'm proposing a `catch_warnings` flag on both TestProgram and TestResult (defaulting to True if you like).
(it would be even nicer if this were more flexible, e.g. I want unittest to catch ResourceWarning but not NumbaWarning, but that's icing on the cake)
By the way, perhaps the tests should also exercise the interaction with assertWarns() calls. |
|
Date |
User |
Action |
Args |
2014-08-13 14:02:20 | pitrou | set | recipients:
+ pitrou, giampaolo.rodola, rbcollins, ezio.melotti, michael.foord, berker.peksag |
2014-08-13 14:02:20 | pitrou | set | messageid: <1407938540.17.0.353613219975.issue18381@psf.upfronthosting.co.za> |
2014-08-13 14:02:20 | pitrou | link | issue18381 messages |
2014-08-13 14:02:19 | pitrou | create | |
|