[issue30542] [EASY] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

Louie Lu report at bugs.python.org
Tue Jun 6 07:19:31 EDT 2017


Louie Lu added the comment:

Briefly speaking, I think this is not a *easy* issue. There is two things need to concern in this issue. 

First, it that the test case is *randomize*, lineno 282 randomly choice 10 file to test. So you will need to stabilize this first.

Second, the minimize range is inside `self.check_roundtrip`'s `compile`, the main reason that this issue can not be *easy issue* is at here, test_unparse read the test file and put it into compile, so generally, you can't find the bug inside the compile function, is the result after compile it. So the main ref leak is in other test files, not this one.

----------

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


More information about the Python-bugs-list mailing list