[issue26101] Lib/test/test_compileall.py fails when run directly

STINNER Victor report at bugs.python.org
Wed Jan 13 12:29:53 EST 2016


STINNER Victor added the comment:

> A cleaner way to do what you're after is to use test_importlib.util.import_state() where you can pass in an explicit value for sys.path to be temporarily set.

I would prefer to not couple test_importlib and test_compileall to keep tests independent. If you consider that it's worth, import_state() must be moved to test.support.

----------

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


More information about the Python-bugs-list mailing list