[issue41718] test.regrtest has way too many imports
STINNER Victor
report at bugs.python.org
Sun Sep 6 06:12:46 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
> You could save/restore this data only when corresponded modules was imported, like it was done in clear_caches() in refleak.py.
It was my first idea, but some large modules like multiprocessing and asyncio are only imported by tested when the test file is imported, whereas save_environment() is called (__enter__) before the import in libregrtest.runtest.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41718>
_______________________________________
More information about the Python-bugs-list
mailing list