n the Mac the frozen import that should fail actually succeeds, and we know it, so...
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 8 Jan 2003 16:30:54 +0000 (16:30 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 8 Jan 2003 16:30:54 +0000 (16:30 +0000)
Lib/test/test_frozen.py

index dd4fa66cd895dd13641e25f6e868699bd4b1b495..8b121d38d8fba4d76b5ca8c17aa142791424932d 100644 (file)
@@ -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"