[New-bugs-announce] [issue9082] warnings.filterwarnings doesn't work with -O
report at bugs.python.org
Fri Jun 25 23:00:12 CEST 2010
New submission from Michael Foord <michael at voidspace.org.uk>:
warnings.filterwarnings is mostly a bunch of asserts, so it doesn't work when Python is run with -O or -OO. This also means that a bunch of tests fail when run with -O or -OO.
Two options are skip the tests or fix filterwarnings.
components: Library (Lib)
title: warnings.filterwarnings doesn't work with -O
versions: Python 2.7, Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce