summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-18 13:32:30 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-18 13:32:30 +0200
commit1548ed6698a09d77418f6e04756ad092ef8cdc4b (patch)
tree877e625943acdf1cb72a19cba59eac21584cf361
parent59f5dee3d66fcac58a21c4eb7bc1d1767d38ae6f (diff)
downloadcpython-git-1548ed6698a09d77418f6e04756ad092ef8cdc4b.tar.gz
Disable posixpath.realpath() tests on Windows (fix for issue #6975).
-rw-r--r--Lib/test/test_posixpath.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
index 80006d96f4..5d0f5b74e2 100644
--- a/Lib/test/test_posixpath.py
+++ b/Lib/test/test_posixpath.py
@@ -338,6 +338,7 @@ class PosixPathTest(unittest.TestCase):
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 @@ class PosixPathTest(unittest.TestCase):
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())))