[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state
Eric V. Smith
report at bugs.python.org
Thu May 17 03:43:40 CEST 2012
Eric V. Smith <eric at trueblade.com> added the comment:
The current tests don't like setting sys.modules to [].
I like resetting everything (including sys.modules) back to the original state. Otherwise some tests, which do things like "import foo", affect later tests.
So, I think I'll leave the patch as-is. I'll rename it, fix all references to it, then check it in. After that I'll start using it in other tests.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14715>
_______________________________________
More information about the Python-bugs-list
mailing list