mirror of https://github.com/python/cpython
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:
parent
ce92147cc8
commit
2918ae8fe6
|
@ -18,9 +18,10 @@ try:
|
||||||
except ImportError, x:
|
except ImportError, x:
|
||||||
raise TestFailed, "import __phello__.spam failed:" + str(x)
|
raise TestFailed, "import __phello__.spam failed:" + str(x)
|
||||||
|
|
||||||
try:
|
if sys.platform != "mac": # On the Mac this import does succeed.
|
||||||
import __phello__.foo
|
try:
|
||||||
except ImportError:
|
import __phello__.foo
|
||||||
pass
|
except ImportError:
|
||||||
else:
|
pass
|
||||||
raise TestFailed, "import __phello__.foo should have failed"
|
else:
|
||||||
|
raise TestFailed, "import __phello__.foo should have failed"
|
||||||
|
|
Loading…
Reference in New Issue