diff options
-rw-r--r-- | Lib/test/test_frozen.py | 13 |
1 files changed, 7 insertions, 6 deletions
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 @@ try: 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" |