[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled
Florent Xicluna
report at bugs.python.org
Wed Mar 17 13:28:28 CET 2010
Florent Xicluna <florent.xicluna at gmail.com> added the comment:
> Checking the pybsddb 4.8.4devel with current trunk I still see this:
It is because the "test_early_close" module calls resetwarnings().
It defeats the filter in the "threading" module.
You may change the test case with a context manager:
with warnings.catch_warnings():
warnings.resetwarnings()
# test the warning
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7092>
_______________________________________
More information about the Python-bugs-list
mailing list