[issue29638] Spurious failures in test_collections in releak hunting mode after typing is imported

Serhiy Storchaka report at bugs.python.org
Sun Mar 5 10:45:50 EST 2017


Serhiy Storchaka added the comment:

> So maybe we just need to add all ABC caches to typing._cleanups (just in case).

I don't know. Sorry, I didn't remember exactly reasons why I didn't move the clearing of all ABC caches into clear_caches(). Perhaps I suspected that this can have unwanted consequences or decrease performance too much.

Are typing.ChainMap and others actually abstract classes? If yes, then perhaps there is something wrong with inspect.isabstract(). If no, then why ABC caches for these classes exist and non-empty?

----------
nosy: +haypo, rhettinger, stutzbach

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


More information about the Python-bugs-list mailing list