mirror of https://github.com/python/cpython.git
Disable posixpath.realpath() tests on Windows (fix for issue #6975).
This commit is contained in:
parent
59f5dee3d6
commit
1548ed6698
|
@ -338,6 +338,7 @@ def test_normpath(self):
|
|||
self.assertEqual(posixpath.normpath(b"///..//./foo/.//bar"),
|
||||
b"/foo/bar")
|
||||
|
||||
@skip_if_ABSTFN_contains_backslash
|
||||
def test_realpath_curdir(self):
|
||||
self.assertEqual(realpath('.'), os.getcwd())
|
||||
self.assertEqual(realpath('./.'), os.getcwd())
|
||||
|
@ -347,6 +348,7 @@ def test_realpath_curdir(self):
|
|||
self.assertEqual(realpath(b'./.'), os.getcwdb())
|
||||
self.assertEqual(realpath(b'/'.join([b'.'] * 100)), os.getcwdb())
|
||||
|
||||
@skip_if_ABSTFN_contains_backslash
|
||||
def test_realpath_pardir(self):
|
||||
self.assertEqual(realpath('..'), dirname(os.getcwd()))
|
||||
self.assertEqual(realpath('../..'), dirname(dirname(os.getcwd())))
|
||||
|
|
Loading…
Reference in New Issue