[issue39253] Running the test suite with --junit-xml and -R incorrectly reports refleaks

Pablo Galindo Salgado report at bugs.python.org
Wed Jan 8 11:43:53 EST 2020


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

> We can stop using --junit-xml if we want. GitHub Actions doesn't support displaying test results anyway, so once Azure Pipelines is switched off we'll just be reading the console all the time anyway (unless Buildbot has a way of rendering test results that I haven't noticed?)


We are using --junit-xml on the buildbots to analyze failures and in the future we can use it to better display the summary, as is more reliable than parsing the longs.

> I guess keeping those objects around looks like a leak?

Yeah, because it seems that we collect those objects in the innermost runner, while the refleak runner runs the whole "test suite" (the test file, like test_list.py) as one unit.

To be honest, the easiest fix here maybe is just deactivating the --junit and make a warning as in bpo-27103

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39253>
_______________________________________


More information about the Python-bugs-list mailing list