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 <[email protected]>
<http://bugs.python.org/issue10967>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com