diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-02-05 11:14:16 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-02-05 11:14:16 (GMT) |
commit | b86a2e803616d17e3a4b6f408922140f863aa9b4 (patch) | |
tree | 1e36e33f76e850d67fa910457e05bcf1963185e6 /Lib/test/test_macfs.py | |
parent | 30a634e0a983f470e3663f93e182faed2128bbd9 (diff) | |
download | cpython-b86a2e803616d17e3a4b6f408922140f863aa9b4.zip cpython-b86a2e803616d17e3a4b6f408922140f863aa9b4.tar.gz cpython-b86a2e803616d17e3a4b6f408922140f863aa9b4.tar.bz2 |
Use os.path.realpath() in stead of abspath(), so the tests don't fail if
we have a symlink somewhere in the TESTFN path.
Diffstat (limited to 'Lib/test/test_macfs.py')
-rw-r--r-- | Lib/test/test_macfs.py | 4 |
1 files changed, 2 insertions, 2 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) |