[New-bugs-announce] [issue31692] Test `test_huntrleaks` fails in debug build with COUNT_ALLOCS
Iryna Shcherbina
report at bugs.python.org
Wed Oct 4 11:42:48 EDT 2017
New submission from Iryna Shcherbina <shcherbina.iryna at gmail.com>:
The newly added `test_huntrleaks` test is failing on Python 2.7.14 debug build with COUNT_ALLOCS.
======================================================================
FAIL: test_huntrleaks (test.test_regrtest.ArgsTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/Python-2.7.14/Lib/test/test_regrtest.py", line 511, in test_huntrleaks
self.check_leak(code, 'references')
File "/builddir/build/BUILD/Python-2.7.14/Lib/test/test_regrtest.py", line 489, in check_leak
self.assertIn(line2, output)
AssertionError: 'test_regrtest_huntrleaks leaked [1, 1, 1] references, sum=3\n' not found in 'Run tests sequentially\n0:00:00 load avg: 0.63 [1/1] test_regrtest_huntrleaks\nbeginning 6 repetitions\n123456\n......\ntest_regrtest_huntrleaks leaked [93, 93, 93] references, sum=279\n1 test failed:\n test_regrtest_huntrleaks\n\nTotal duration: 32 ms\nTests result: FAILURE\n[53092 refs]\n'
----------------------------------------------------------------------
On Python 2.7.14 debug build *without* COUNT_ALLOCS the test passes fine, therefore I am not sure if there is a leak detected, or is it just COUNT_ALLOCS messing with the test and it should be skipped.
----------
components: Tests
messages: 303705
nosy: ishcherb
priority: normal
severity: normal
status: open
title: Test `test_huntrleaks` fails in debug build with COUNT_ALLOCS
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31692>
_______________________________________
More information about the New-bugs-announce
mailing list