summaryrefslogtreecommitdiff
path: root/Lib/test/test_applesingle.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_applesingle.py')
-rw-r--r--Lib/test/test_applesingle.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_applesingle.py b/Lib/test/test_applesingle.py
index e915028dca..5a8201c3d0 100644
--- a/Lib/test/test_applesingle.py
+++ b/Lib/test/test_applesingle.py
@@ -1,13 +1,15 @@
# Copyright (C) 2003 Python Software Foundation
import unittest
-import macostools
-import Carbon.File
-import MacOS
import os
from test import test_support
import struct
+
+MacOS = test_support.import_module('MacOS')
+# The following should exist if MacOS does.
+import macostools
import applesingle
+import Carbon.File
AS_MAGIC=0x00051600
AS_VERSION=0x00020000