[issue32089] In developer mode (-X dev), ResourceWarning is only emited once per line numbers

STINNER Victor report at bugs.python.org
Mon Nov 20 19:42:16 EST 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

Attached PR 4482 fixes warnings filters:

haypo at selma$ ./python -X dev -c 'import warnings, pprint; pprint.pprint(warnings.filters)'
[('ignore', None, <class 'BytesWarning'>, None, 0),
 ('always', None, <class 'ResourceWarning'>, None, 0),
 ('default', None, <class 'Warning'>, None, 0)]

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32089>
_______________________________________


More information about the Python-bugs-list mailing list