]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Disable posixpath.realpath() tests on Windows (fix for issue #6975).
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 18 Feb 2013 11:32:30 +0000 (13:32 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 18 Feb 2013 11:32:30 +0000 (13:32 +0200)
Lib/test/test_posixpath.py

index 80006d96f4dd62158723e2939f6cd9d04f4da31f..5d0f5b74e2ed4c5f42c5861f806759cbc395cd1f 100644 (file)
@@ -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())))