[issue9082] warnings.filterwarnings doesn't work with -O
report at bugs.python.org
Tue Sep 28 00:23:08 CEST 2010
Michael Foord <michael at voidspace.org.uk> added the comment:
Most of those failures look like they have a similar cause (not all of them though) related to running doctests. When issue 6292 was closed all tests passed with -OO, so this is a regression. I'm raising a separate issue for that.
Looking at the code actually in warnings.filterwarnings (currently at any rate) I wonder what tests possibly could fail due to the asserts not being run? Maybe I hallucinated the problem... (Or more likely it was actually another issue.)
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list