[issue7772] test_py3kwarn fails when running the whole test suite

Florent Xicluna report at bugs.python.org
Sun Jan 24 19:51:11 CET 2010


Florent Xicluna <laxyf at yahoo.fr> added the comment:

Here comes the patch:
 - use test_support.__warningregistry__ to check past warnings
 - filter the warnings with "(module|package)", to be sure that they are silenced by "test_support.import_module"
 - fix test_reduce_move (it failed when run after test_unittest)


Note:
 - it requires that all "deprecated" imports are filtered through the "test_support.import_module" function (issue #7092)

----------
dependencies: +Test suite emits many DeprecationWarnings when -3 is enabled
keywords: +patch
stage:  -> patch review
Added file: http://bugs.python.org/file15992/issue7772_py3kwarn.diff

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


More information about the Python-bugs-list mailing list