mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Disable posixpath.realpath() tests on Windows (fix for issue #6975).
This commit is contained in:
commit
789ee0f31f
1 changed files with 2 additions and 0 deletions
|
|
@ -283,6 +283,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())
|
||||||
|
|
@ -292,6 +293,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())))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue