[Python-checkins] cpython (3.2): Disable posixpath.realpath() tests on Windows (fix for issue #6975).

serhiy.storchaka python-checkins at python.org
Mon Feb 18 12:36:02 CET 2013


http://hg.python.org/cpython/rev/0bbf7cdea551
changeset:   82256:0bbf7cdea551
branch:      3.2
parent:      82252:9904f245c3f0
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Mon Feb 18 13:32:30 2013 +0200
summary:
  Disable posixpath.realpath() tests on Windows (fix for issue #6975).

files:
  Lib/test/test_posixpath.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
--- a/Lib/test/test_posixpath.py
+++ b/Lib/test/test_posixpath.py
@@ -338,6 +338,7 @@
         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 @@
         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())))

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list