issue9035: Prevent Windows-specific tests from running on non-Windows platforms

This commit is contained in:
Tim Golden 2013-08-01 13:58:58 +01:00
parent 6b528067c5
commit b2fcebb018
1 changed files with 14 additions and 14 deletions

View File

@ -274,6 +274,7 @@ class TestNtpath(unittest.TestCase):
with support.temp_dir() as d:
self.assertFalse(ntpath.ismount(d))
if sys.platform == "win32":
#
# Make sure the current folder isn't the root folder
# (or any other volume root). The drive-relative
@ -290,7 +291,6 @@ class TestNtpath(unittest.TestCase):
self.assertTrue(ntpath.ismount(b"\\\\localhost\\c$"))
self.assertTrue(ntpath.ismount(b"\\\\localhost\\c$\\"))
class NtCommonTest(test_genericpath.CommonTest, unittest.TestCase):
pathmodule = ntpath
attributes = ['relpath', 'splitunc']