[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state
Brett Cannon
report at bugs.python.org
Thu May 3 23:52:38 CEST 2012
Brett Cannon <brett at python.org> added the comment:
Yes, it could do all of this. One possibility that I was thinking of, was this could be a setUp()/tearDown() thing as well instead of a context manager. Another option is a simple decorator. Either way it might be easier to have it just save state and then in the body of the code set everything as desired instead of in the context manager's init.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14715>
_______________________________________
More information about the Python-bugs-list
mailing list