blob: 3aa91ab9a069dea08be11299f0394b3bb38d4b6a [file] [log] [blame]
Guido van Rossum4114a4a2001-10-18 18:49:37 +00001# Test the frozen module defined in frozen.c.
2
3from test_support import TestFailed
4import 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"