diff options
-rw-r--r-- | Lib/test/test_macfs.py | 4 | ||||
-rw-r--r-- | Lib/test/test_macostools.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_macfs.py b/Lib/test/test_macfs.py index 9c865d5..64235ec 100644 --- a/Lib/test/test_macfs.py +++ b/Lib/test/test_macfs.py @@ -21,11 +21,11 @@ class TestMacfs(unittest.TestCase): def test_fsspec(self): fss = macfs.FSSpec(test_support.TESTFN) - self.assertEqual(os.path.abspath(test_support.TESTFN), fss.as_pathname()) + self.assertEqual(os.path.realpath(test_support.TESTFN), fss.as_pathname()) def test_fsref(self): fsr = macfs.FSRef(test_support.TESTFN) - self.assertEqual(os.path.abspath(test_support.TESTFN), fsr.as_pathname()) + self.assertEqual(os.path.realpath(test_support.TESTFN), fsr.as_pathname()) def test_coercion(self): fss = macfs.FSSpec(test_support.TESTFN) diff --git a/Lib/test/test_macostools.py b/Lib/test/test_macostools.py index 268d9bb..f5abb6d 100644 --- a/Lib/test/test_macostools.py +++ b/Lib/test/test_macostools.py @@ -68,7 +68,7 @@ class TestMacostools(unittest.TestCase): pass macostools.mkalias(test_support.TESTFN, TESTFN2) fss, _, _ = macfs.ResolveAliasFile(TESTFN2) - self.assertEqual(fss.as_pathname(), os.path.abspath(test_support.TESTFN)) + self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN)) def test_mkalias_relative(self): try: @@ -77,7 +77,7 @@ class TestMacostools(unittest.TestCase): pass macostools.mkalias(test_support.TESTFN, TESTFN2, sys.prefix) fss, _, _ = macfs.ResolveAliasFile(TESTFN2) - self.assertEqual(fss.as_pathname(), os.path.abspath(test_support.TESTFN)) + self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN)) def test_main(): |