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 michael.foord
Recipients brian.curtin, ev, michael.foord
Date 2011-03-15.16:10:59
SpamBayes Score 3.3269953e-10
Marked as misclassified No
Message-id <1300205461.57.0.0803154465877.issue11503@psf.upfronthosting.co.za>
In-reply-to
Content
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")
History
Date User Action Args
2011-03-15 16:11:01michael.foordsetrecipients: + michael.foord, brian.curtin, ev
2011-03-15 16:11:01michael.foordsetmessageid: <1300205461.57.0.0803154465877.issue11503@psf.upfronthosting.co.za>
2011-03-15 16:10:59michael.foordlinkissue11503 messages
2011-03-15 16:10:59michael.foordcreate