[issue14715] test.support.DirsOnSysPath should be replaced by importlib.test.util.import_state

Éric Araujo report at bugs.python.org
Fri May 4 05:25:32 CEST 2012


Éric Araujo <merwok at netwok.org> added the comment:

I tend to like context managers, or helpers that work with addCleanup, so that I keep the scaffolding next to the test code.  setUp and tearDown are better in some cases, though.  It is also possible to have an helper work as a decorator and a context manager and a setUp-tearDown thing with small effort.

----------
nosy: +eric.araujo

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


More information about the Python-bugs-list mailing list