summaryrefslogtreecommitdiff
path: root/Lib/test/test_aepack.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_aepack.py')
-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 5d4ab3e20b..f4ea25b5f0 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)