Commit 1548ed66 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Disable posixpath.realpath() tests on Windows (fix for issue #6975).

parent 59f5dee3
...@@ -338,6 +338,7 @@ class PosixPathTest(unittest.TestCase): ...@@ -338,6 +338,7 @@ class PosixPathTest(unittest.TestCase):
self.assertEqual(posixpath.normpath(b"///..//./foo/.//bar"), self.assertEqual(posixpath.normpath(b"///..//./foo/.//bar"),
b"/foo/bar") b"/foo/bar")
@skip_if_ABSTFN_contains_backslash
def test_realpath_curdir(self): def test_realpath_curdir(self):
self.assertEqual(realpath('.'), os.getcwd()) self.assertEqual(realpath('.'), os.getcwd())
self.assertEqual(realpath('./.'), os.getcwd()) self.assertEqual(realpath('./.'), os.getcwd())
...@@ -347,6 +348,7 @@ class PosixPathTest(unittest.TestCase): ...@@ -347,6 +348,7 @@ class PosixPathTest(unittest.TestCase):
self.assertEqual(realpath(b'./.'), os.getcwdb()) self.assertEqual(realpath(b'./.'), os.getcwdb())
self.assertEqual(realpath(b'/'.join([b'.'] * 100)), os.getcwdb()) self.assertEqual(realpath(b'/'.join([b'.'] * 100)), os.getcwdb())
@skip_if_ABSTFN_contains_backslash
def test_realpath_pardir(self): def test_realpath_pardir(self):
self.assertEqual(realpath('..'), dirname(os.getcwd())) self.assertEqual(realpath('..'), dirname(os.getcwd()))
self.assertEqual(realpath('../..'), dirname(dirname(os.getcwd()))) self.assertEqual(realpath('../..'), dirname(dirname(os.getcwd())))
......
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