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 brett.cannon
Recipients brett.cannon
Date 2011-01-20.23:40:27
SpamBayes Score 1.3454151e-08
Marked as misclassified No
Message-id <1295566830.75.0.786153857799.issue10966@psf.upfronthosting.co.za>
In-reply-to
Content
test.regrtest considers an ImportError to be a test to skip. It then uses this info to decide what skipped tests were expected (or not) based on a list kepted in regrtest.py.

For detecting compiler failures, an ImportError should be a test error or failure. Tests for optional modules should instead raise TestSkipped directly if an import fails. Something like test.support.optional_import() should be created which raises TestSkipped if the requested module could not be imported. It could also be made optional based on the OS (not sure if it should be inclusive, exclusive, or either). That way the list of expected skips in regrtest.py can be moved into the individual test modules where it belongs.
History
Date User Action Args
2011-01-20 23:40:30brett.cannonsetrecipients: + brett.cannon
2011-01-20 23:40:30brett.cannonsetmessageid: <1295566830.75.0.786153857799.issue10966@psf.upfronthosting.co.za>
2011-01-20 23:40:27brett.cannonlinkissue10966 messages
2011-01-20 23:40:27brett.cannoncreate