From 2918ae8fe6e737e1a161c880e75a9500be50386b Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 8 Jan 2003 16:30:54 +0000 Subject: [PATCH] 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. --- Lib/test/test_frozen.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Lib/test/test_frozen.py b/Lib/test/test_frozen.py index dd4fa66cd89..8b121d38d8f 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"