This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_tools: test.test_tools.test_unparse.UnparseTestCase: test_tools leaked [36, 36, 36] references
Type: Stage: resolved
Components: Tests Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords:

Created on 2019-09-15 09:56 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg352473 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-09-15 09:56
https://buildbot.python.org/all/#/builders/189/builds/153

$ ./python -m test -R 3:3 test_tools -m test.test_tools.test_unparse.UnparseTestCase.test_nonlocal
Run tests sequentially
0:00:00 load avg: 1.48 [1/1] test_tools
beginning 6 repetitions
123456
......
test_tools leaked [36, 36, 36] references, sum=108
test_tools failed

== Tests result: FAILURE ==

1 test failed:
    test_tools

Total duration: 591 ms
Tests result: FAILURE
msg352474 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-09-15 10:26
Oh, test_unparse.UnparseTestCase.test_nonlocal has been fixed. Maybe by:

commit 0247e80f3c529900689425676342cb70ea31a13d
Author: Eddie Elizondo <eelizondo@fb.com>
Date:   Sat Sep 14 09:38:17 2019 -0400

    Fix leaks in Python-ast.c (#16127)

But there are more leaks.

vstinner@apu$ make && ./python -m test -R 3:3 test_tools -m test.test_tools.test_c_analyzer.test_c_analyzer_common.test_known.FromFileTests.test_typical

It seems like the test leaks since the test has been added by:

commit ee536b2020b1f0baad1286dbd4345e13870324af
Author: Eric Snow <ericsnowcurrently@gmail.com>
Date:   Wed Sep 11 19:49:45 2019 +0100

    bpo-36876: Add a tool that identifies unsupported global C variables. (#15877)
History
Date User Action Args
2022-04-11 14:59:20adminsetgithub: 82358
2019-09-16 23:42:58pablogsalsetstatus: open -> closed
resolution: fixed
stage: resolved
2019-09-15 10:26:39vstinnersetmessages: + msg352474
2019-09-15 09:56:26vstinnercreate