Commit 9b151f36 authored by Tim Golden's avatar Tim Golden

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

parent 6d2eff3c
...@@ -274,6 +274,7 @@ class TestNtpath(unittest.TestCase): ...@@ -274,6 +274,7 @@ class TestNtpath(unittest.TestCase):
with support.temp_dir() as d: with support.temp_dir() as d:
self.assertFalse(ntpath.ismount(d)) self.assertFalse(ntpath.ismount(d))
if sys.platform == "win32":
# #
# Make sure the current folder isn't the root folder # Make sure the current folder isn't the root folder
# (or any other volume root). The drive-relative # (or any other volume root). The drive-relative
...@@ -290,7 +291,6 @@ class TestNtpath(unittest.TestCase): ...@@ -290,7 +291,6 @@ class TestNtpath(unittest.TestCase):
self.assertTrue(ntpath.ismount(b"\\\\localhost\\c$")) self.assertTrue(ntpath.ismount(b"\\\\localhost\\c$"))
self.assertTrue(ntpath.ismount(b"\\\\localhost\\c$\\")) self.assertTrue(ntpath.ismount(b"\\\\localhost\\c$\\"))
class NtCommonTest(test_genericpath.CommonTest, unittest.TestCase): class NtCommonTest(test_genericpath.CommonTest, unittest.TestCase):
pathmodule = ntpath pathmodule = ntpath
attributes = ['relpath', 'splitunc'] attributes = ['relpath', 'splitunc']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment