Use os.path.realpath() in stead of abspath(), so the tests don't fail if
we have a symlink somewhere in the TESTFN path.
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 @@
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)