Message126663
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. |
|
Date |
User |
Action |
Args |
2011-01-20 23:40:30 | brett.cannon | set | recipients:
+ brett.cannon |
2011-01-20 23:40:30 | brett.cannon | set | messageid: <1295566830.75.0.786153857799.issue10966@psf.upfronthosting.co.za> |
2011-01-20 23:40:27 | brett.cannon | link | issue10966 messages |
2011-01-20 23:40:27 | brett.cannon | create | |
|