summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-09-06 10:00:26 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-09-06 10:00:26 (GMT)
commit2596758cb42cb592f2e3c33ef77bc9b02c995510 (patch)
tree78f8869bfd6ec74755463b0f918d2e24d5972465 /Lib/test
parentf01697014f63e3fbe11f73afe789b6205125cb20 (diff)
downloadcpython-2596758cb42cb592f2e3c33ef77bc9b02c995510.zip
cpython-2596758cb42cb592f2e3c33ef77bc9b02c995510.tar.gz
cpython-2596758cb42cb592f2e3c33ef77bc9b02c995510.tar.bz2
Fix build issues on OSX 10.6 (issue 6802)
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/test_aepack.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_aepack.py b/Lib/test/test_aepack.py
index 5d4ab3e..f4ea25b 100755
--- a/Lib/test/test_aepack.py
+++ b/Lib/test/test_aepack.py
@@ -60,6 +60,9 @@ class TestAepack(unittest.TestCase):
import Carbon.File
except:
return
+
+ if not hasattr(Carbon.File, "FSSpec"):
+ return
o = Carbon.File.FSSpec(os.curdir)
packed = aepack.pack(o)
unpacked = aepack.unpack(packed)
@@ -70,6 +73,8 @@ class TestAepack(unittest.TestCase):
import Carbon.File
except:
return
+ if not hasattr(Carbon.File, "FSSpec"):
+ return
o = Carbon.File.FSSpec(os.curdir).NewAliasMinimal()
packed = aepack.pack(o)
unpacked = aepack.unpack(packed)