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.12:05:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362225900.74.0.545790519745.issue10967@psf.upfronthosting.co.za>
In-reply-to
Content
> For one thing, I think resources could be implemented in terms of skips

While working on #17333 I noticed a related problem.  Most of the tests in test_imaplib are skipped if the 'network' resource is not specified.  The test contains the following lines to enable those tests when the file is executed directly:

if __name__ == "__main__":
    support.use_resources = ['network']
    unittest.main()

but this clearly doesn't work while using unittest discovery, so those tests are skipped.

Implementing resources as skips makes sense, but we might also need a way to specify what resources are needed that works with unittest discovery.  Running these tests only when the test file is executed directly or through `regrtest -u` is also an option.
History
Date User Action Args
2013-03-02 12:05:00ezio.melottisetrecipients: + ezio.melotti, brett.cannon, rhettinger, eric.araujo, r.david.murray, sandro.tosi, chris.jerdonek
2013-03-02 12:05:00ezio.melottisetmessageid: <1362225900.74.0.545790519745.issue10967@psf.upfronthosting.co.za>
2013-03-02 12:05:00ezio.melottilinkissue10967 messages
2013-03-02 12:05:00ezio.melotticreate