[issue12314] regrtest checks (os.environ, sys.path, etc.) are hard to use
Éric Araujo
report at bugs.python.org
Fri Jun 10 18:56:23 CEST 2011
Éric Araujo <merwok at netwok.org> added the comment:
> maybe there's some way to reuse unittest's assertEqual machinery?
Hum, I think the diff functionality is cleanly separated in a (private) method, so we could get diff for free.
> I also wonder if the whole environment-changed thing should be moved
> into unittest so it could wrap around individual test methods.
Yeah, I was thinking about a WatchfulTestRunner that would perform the same checks. It annoys me to have two diverging sets of features to run tests: either checks with regrtest, or failfast, discovery and granularity with unittest.
----------
nosy: +ezio.melotti, michael.foord
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12314>
_______________________________________
More information about the Python-bugs-list
mailing list