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.

This commit is contained in:
Jack Jansen 2003-01-08 16:30:54 +00:00
parent ce92147cc8
commit 2918ae8fe6

View file

@ -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"