n the Mac the frozen import that should fail actually succeeds, and we know it, so skip the test in stead of confusing the end user.
diff --git a/Lib/test/test_frozen.py b/Lib/test/test_frozen.py
index dd4fa66..8b121d3 100644
--- a/Lib/test/test_frozen.py
+++ b/Lib/test/test_frozen.py
@@ -18,9 +18,10 @@
except ImportError, x:
raise TestFailed, "import __phello__.spam failed:" + str(x)
-try:
- import __phello__.foo
-except ImportError:
- pass
-else:
- raise TestFailed, "import __phello__.foo should have failed"
+if sys.platform != "mac": # On the Mac this import does succeed.
+ try:
+ import __phello__.foo
+ except ImportError:
+ pass
+ else:
+ raise TestFailed, "import __phello__.foo should have failed"