blob: 120a85f67a4051f45b819d0a2c51b256fa4c617a [file] [log] [blame]
Guido van Rossum4114a4a2001-10-18 18:49:37 +00001# Test the frozen module defined in frozen.c.
2
Barry Warsaw408b6d32002-07-30 23:27:12 +00003from test.test_support import TestFailed
Guido van Rossum4114a4a2001-10-18 18:49:37 +00004import sys, os
5
6try:
7 import __hello__
8except ImportError, x:
9 raise TestFailed, "import __hello__ failed:", x
10
11try:
12 import __phello__
13except ImportError, x:
14 raise TestFailed, "import __phello__ failed:", x
15
16try:
17 import __phello__.spam
18except ImportError, x:
19 raise TestFailed, "import __phello__.spam failed:", x
20
21try:
22 import __phello__.foo
23except ImportError:
24 pass
25else:
26 raise TestFailed, "import __phello__.foo should have failed"