add hg and python
This commit is contained in:
parent
3a742c699f
commit
458120dd40
3709 changed files with 1244309 additions and 1 deletions
27
sys/lib/python/test/test_frozen.py
Normal file
27
sys/lib/python/test/test_frozen.py
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Test the frozen module defined in frozen.c.
|
||||
|
||||
from test.test_support import TestFailed
|
||||
import sys, os
|
||||
|
||||
try:
|
||||
import __hello__
|
||||
except ImportError, x:
|
||||
raise TestFailed, "import __hello__ failed:" + str(x)
|
||||
|
||||
try:
|
||||
import __phello__
|
||||
except ImportError, x:
|
||||
raise TestFailed, "import __phello__ failed:" + str(x)
|
||||
|
||||
try:
|
||||
import __phello__.spam
|
||||
except ImportError, x:
|
||||
raise TestFailed, "import __phello__.spam failed:" + str(x)
|
||||
|
||||
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"
|
Loading…
Add table
Add a link
Reference in a new issue