summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-01-08 16:30:54 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-01-08 16:30:54 (GMT)
commit2918ae8fe6e737e1a161c880e75a9500be50386b (patch)
treeb0c56b3f3ad794adc63a59554c2e100211c5b895 /Lib
parentce92147cc8d1bbef1726857cb32f6d652aa09871 (diff)
downloadcpython-2918ae8fe6e737e1a161c880e75a9500be50386b.zip
cpython-2918ae8fe6e737e1a161c880e75a9500be50386b.tar.gz
cpython-2918ae8fe6e737e1a161c880e75a9500be50386b.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_frozen.py13
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"