This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients brett.cannon, chris.jerdonek, eric.araujo, ezio.melotti, r.david.murray, rhettinger, sandro.tosi
Date 2013-03-02.17:16:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362244603.3.0.278091132297.issue10967@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-03-02 17:16:43ezio.melottisetrecipients: + ezio.melotti, brett.cannon, rhettinger, eric.araujo, r.david.murray, sandro.tosi, chris.jerdonek
2013-03-02 17:16:43ezio.melottisetmessageid: <1362244603.3.0.278091132297.issue10967@psf.upfronthosting.co.za>
2013-03-02 17:16:43ezio.melottilinkissue10967 messages
2013-03-02 17:16:43ezio.melotticreate