Message130986
The patch includes an unconditional "import posix" that will fail on Windows.
posixpath is available on windows (although not *all* its functionality makes sense), so the whole test should not be skipped - but it is reasonable to skip just the new tests using posix.
Something like:
try:
import posix
except ImportError:
posix = None
Then decorated tests that use posix with:
@unittest.skipIf(posix is None, "Test requires posix module") |
|
Date |
User |
Action |
Args |
2011-03-15 16:11:01 | michael.foord | set | recipients:
+ michael.foord, brian.curtin, ev |
2011-03-15 16:11:01 | michael.foord | set | messageid: <1300205461.57.0.0803154465877.issue11503@psf.upfronthosting.co.za> |
2011-03-15 16:10:59 | michael.foord | link | issue11503 messages |
2011-03-15 16:10:59 | michael.foord | create | |
|