[issue19527] Test failures with COUNT_ALLOCS

Serhiy Storchaka report at bugs.python.org
Sat Dec 13 18:47:36 CET 2014


Serhiy Storchaka added the comment:

Thenks Antoine for great idea proposed in comments on Rietveld. Following patch introduces strip_python_stdout() which strips COUNT_ALLOCS debug output from stdout (unfortunately this operation is not always unambiguous) and call it in assert_python_ok() and assert_python_failure(). This automatically fixes a large number of tests. Also fixed a number of other tests failing with COUNT_ALLOCS. Virtually all tests are now fixed except test_doctest and test_distutils.

A large part of the patch will be applied only to 3.4 and 2.7. With resolved issue23034 the patch for 3.5 will be much simpler, strip_python_stdout() and @requires_clean_stdout will gone away.

----------
dependencies: +Dynamically control debugging output
Added file: http://bugs.python.org/file37442/00141-fix-tests_with_COUNT_ALLOCS-v5.patch

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


More information about the Python-bugs-list mailing list