From: Jack Jansen Date: Wed, 8 Jan 2003 16:30:54 +0000 (+0000) Subject: n the Mac the frozen import that should fail actually succeeds, and we know it, so... X-Git-Tag: v2.3c1~2522 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2918ae8fe6e737e1a161c880e75a9500be50386b;p=thirdparty%2FPython%2Fcpython.git 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 dd4fa66cd895..8b121d38d8fb 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"