[issue11503] Expand test coverage in posixpath
Michael Foord
report at bugs.python.org
Tue Mar 15 17:11:01 CET 2011
Michael Foord <michael at voidspace.org.uk> added the comment:
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")
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11503>
_______________________________________
More information about the Python-bugs-list
mailing list