Re: Convert Python 3 ResourceWarnings into exception

2014-07-31 Thread Piotr Dobrogost
Terry Reedy udel.edu> writes: > > python -W error ... > "Raise an exception instead of printing a warning message." > > You can also turn this on with the warnings module. Assuming that this > works for ResourceWarning, which is should, please correct the SO record. Thanks for taking time to

Re: Convert Python 3 ResourceWarnings into exception

2014-07-30 Thread Terry Reedy
On 7/30/2014 9:24 AM, Piotr Dobrogost wrote: Hi! Recently A. Jesse Jiryu Davis asked at Stackoverflow (http://stackoverflow.com/q/24717027/95735) if there is "a way to force a Python 3 unittest to fail, rather than simply print a warning to stderr, if it causes any ResourceWarning?" Daniel Hardi