Commits

Serhiy Storchaka committed 0bbf7cd

Disable posixpath.realpath() tests on Windows (fix for issue #6975).

Comments (0)

Files changed (1)

Lib/test/test_posixpath.py

         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())
         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())))