summaryrefslogtreecommitdiff
path: root/Lib/test/test_macos.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_macos.py')
-rw-r--r--Lib/test/test_macos.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_macos.py b/Lib/test/test_macos.py
index a9ff0b21d3..ce5f858dde 100644
--- a/Lib/test/test_macos.py
+++ b/Lib/test/test_macos.py
@@ -1,10 +1,12 @@
import unittest
-import MacOS
-import Carbon.File
from test import test_support
import os
import subprocess
+MacOS = test_support.import_module('MacOS')
+#The following should exist if MacOS exists.
+import Carbon.File
+
TESTFN2 = test_support.TESTFN + '2'
class TestMacOS(unittest.TestCase):