diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-12-06 06:13:59 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-12-06 06:13:59 (GMT) |
commit | 506f691379c190d71e74d80a532e8b7aa1d28479 (patch) | |
tree | 251c76a65992b896018a46b92b396e0a06acef0c /Lib/test | |
parent | 9bff72f0a1a85ae4682c625c94c41643ef2447c5 (diff) | |
download | cpython-506f691379c190d71e74d80a532e8b7aa1d28479.zip cpython-506f691379c190d71e74d80a532e8b7aa1d28479.tar.gz cpython-506f691379c190d71e74d80a532e8b7aa1d28479.tar.bz2 |
Don't have test_mkalias_relative run if sys.prefix does not exist. Backport of
fix for bug #1077302.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_macostools.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_macostools.py b/Lib/test/test_macostools.py index 9ed2d81..6327e98 100644 --- a/Lib/test/test_macostools.py +++ b/Lib/test/test_macostools.py @@ -71,6 +71,8 @@ class TestMacostools(unittest.TestCase): self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN)) def test_mkalias_relative(self): + if not os.path.exists(sys.prefix): + return try: os.unlink(TESTFN2) except: |