summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posixpath.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-18 11:32:30 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-18 11:32:30 (GMT)
commit1548ed6698a09d77418f6e04756ad092ef8cdc4b (patch)
tree877e625943acdf1cb72a19cba59eac21584cf361 /Lib/test/test_posixpath.py
parent59f5dee3d66fcac58a21c4eb7bc1d1767d38ae6f (diff)
downloadcpython-1548ed6698a09d77418f6e04756ad092ef8cdc4b.zip
cpython-1548ed6698a09d77418f6e04756ad092ef8cdc4b.tar.gz
cpython-1548ed6698a09d77418f6e04756ad092ef8cdc4b.tar.bz2
Disable posixpath.realpath() tests on Windows (fix for issue #6975).
Diffstat (limited to 'Lib/test/test_posixpath.py')
-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 80006d9..5d0f5b7 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())))