blob: dd4fa66cd895dd13641e25f6e868699bd4b1b495 [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:
Finn Bock218c5f92002-11-01 11:33:00 +00009 raise TestFailed, "import __hello__ failed:" + str(x)
Guido van Rossum4114a4a2001-10-18 18:49:37 +000010
11try:
12 import __phello__
13except ImportError, x:
Finn Bock218c5f92002-11-01 11:33:00 +000014 raise TestFailed, "import __phello__ failed:" + str(x)
Guido van Rossum4114a4a2001-10-18 18:49:37 +000015
16try:
17 import __phello__.spam
18except ImportError, x:
Finn Bock218c5f92002-11-01 11:33:00 +000019 raise TestFailed, "import __phello__.spam failed:" + str(x)
Guido van Rossum4114a4a2001-10-18 18:49:37 +000020
21try:
22 import __phello__.foo
23except ImportError:
24 pass
25else:
26 raise TestFailed, "import __phello__.foo should have failed"