summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-18 11:33:13 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-18 11:33:13 (GMT)
commit41d4ebbf43f78d390d33420bbbbfd0cb78be4e76 (patch)
tree63eeac31931595da31a2330dc885658732b969c2
parentdf4aa642a5d13ddd5646495fcefd2a92aaf07e74 (diff)
parent1548ed6698a09d77418f6e04756ad092ef8cdc4b (diff)
downloadcpython-41d4ebbf43f78d390d33420bbbbfd0cb78be4e76.zip
cpython-41d4ebbf43f78d390d33420bbbbfd0cb78be4e76.tar.gz
cpython-41d4ebbf43f78d390d33420bbbbfd0cb78be4e76.tar.bz2
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 01d84da..f545f08 100644
--- a/Lib/test/test_posixpath.py
+++ b/Lib/test/test_posixpath.py
@@ -340,6 +340,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())
@@ -349,6 +350,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())))