[issue10967] move regrtest over to using more unittest infrastructure

Ezio Melotti report at bugs.python.org
Sat Mar 2 18:16:43 CET 2013


Ezio Melotti added the comment:

There are actually three separate issues here:
1) The resources don't use unittest skip (or at least not always), so while running the tests without regrtests there are no indication that some tests have been skipped.  This could be addressed by converting the current resources to proper skips (with something like @skip_unless_resource('network')) and shouldn't be too difficult.

2) The "network" resource could be enabled by default, given that network connectivity is nowadays fairly common (it would be even better if that was detected automatically at runtime).  This would enable more tests and shouldn't have negative side-effects (unless the network is not available and the tests have no way to realize that and fail).

3) unittest could have a "resource API", but that's not strictly necessary if we still provide a way to run the skipped tests through regrtest and/or while running the test file individually.

----------

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


More information about the Python-bugs-list mailing list