[New-bugs-announce] [issue9082] warnings.filterwarnings doesn't work with -O

Michael Foord 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)
messages: 108628
nosy: michael.foord
priority: normal
severity: normal
status: open
title: warnings.filterwarnings doesn't work with -O
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9082>
_______________________________________


More information about the New-bugs-announce mailing list