mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Getting rid of macfs.
This commit is contained in:
parent
abeb7d5f7f
commit
98fc683719
3 changed files with 9 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
import unittest
|
||||
import macostools
|
||||
import macfs
|
||||
import Carbon.File
|
||||
import MacOS
|
||||
import os
|
||||
import sys
|
||||
|
@ -67,7 +67,7 @@ class TestMacostools(unittest.TestCase):
|
|||
except:
|
||||
pass
|
||||
macostools.mkalias(test_support.TESTFN, TESTFN2)
|
||||
fss, _, _ = macfs.ResolveAliasFile(TESTFN2)
|
||||
fss, _, _ = Carbon.File.ResolveAliasFile(TESTFN2, 0)
|
||||
self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN))
|
||||
|
||||
def test_mkalias_relative(self):
|
||||
|
@ -76,7 +76,7 @@ class TestMacostools(unittest.TestCase):
|
|||
except:
|
||||
pass
|
||||
macostools.mkalias(test_support.TESTFN, TESTFN2, sys.prefix)
|
||||
fss, _, _ = macfs.ResolveAliasFile(TESTFN2)
|
||||
fss, _, _ = Carbon.File.ResolveAliasFile(TESTFN2, 0)
|
||||
self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue