This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients berker.peksag, ezio.melotti, giampaolo.rodola, michael.foord, pitrou, rbcollins
Date 2014-08-13.14:02:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407938540.17.0.353613219975.issue18381@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-08-13 14:02:20pitrousetrecipients: + pitrou, giampaolo.rodola, rbcollins, ezio.melotti, michael.foord, berker.peksag
2014-08-13 14:02:20pitrousetmessageid: <1407938540.17.0.353613219975.issue18381@psf.upfronthosting.co.za>
2014-08-13 14:02:20pitroulinkissue18381 messages
2014-08-13 14:02:19pitroucreate