diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 01d84daa211d..f545f0856ec4 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -340,6 +340,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()) @@ -349,6 +350,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())))