diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 2003-02-05 11:14:16 +0000 |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-02-05 11:14:16 +0000 |
| commit | b86a2e803616d17e3a4b6f408922140f863aa9b4 (patch) | |
| tree | 1e36e33f76e850d67fa910457e05bcf1963185e6 /Lib/test/test_macostools.py | |
| parent | 30a634e0a983f470e3663f93e182faed2128bbd9 (diff) | |
| download | cpython-git-b86a2e803616d17e3a4b6f408922140f863aa9b4.tar.gz | |
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_macostools.py')
| -rw-r--r-- | Lib/test/test_macostools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_macostools.py b/Lib/test/test_macostools.py index 268d9bb2ef..f5abb6dc9f 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(): |
