[issue28649] refleak in typing.py

Ivan Levkivskyi report at bugs.python.org
Wed Nov 9 20:38:25 EST 2016


Ivan Levkivskyi added the comment:

> * It looks like that some types in the cache are being *reused* by different tests.  

I also noticed this some time ago, ideally we need to make all tests more isolated between each other.

> Now this all of this is just my guess of what's going on here. It might be something that has to be fixed in typing, or maybe we should just add tearDown.

adding tearDown is a good intermediate solution, while I could go through tests and try to make them more isolated from each other where necessary.

> BTW, if I set maxsize=100000 for typing lru_cache, test_generic_forward_ref crashes in refleak-test mode. Maybe this is another bug...

I also noticed this today, and this is something that I don't understand yet. This test should not depend on caching, but it looks like it does. I will think more about this.

----------

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


More information about the Python-bugs-list mailing list