Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 2d0f5aa9a14f63854dc1d4633effa7a24b9553a7 authored by cvs2svn on 29 March 2002, 21:23:40 UTC
This commit was manufactured by cvs2svn to create tag 'r22p1'.
Tip revision: 2d0f5aa
test_frozen.py
# Test the frozen module defined in frozen.c.

from test_support import TestFailed
import sys, os

try:
    import __hello__
except ImportError, x:
    raise TestFailed, "import __hello__ failed:", x

try:
    import __phello__
except ImportError, x:
    raise TestFailed, "import __phello__ failed:", x

try:
    import __phello__.spam
except ImportError, x:
    raise TestFailed, "import __phello__.spam failed:", x

try:
    import __phello__.foo
except ImportError:
    pass
else:
    raise TestFailed, "import __phello__.foo should have failed"
back to top