Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 4ce90b3a994e3eef18e43ac5a1f6c9acd0b16b8c authored by cvs2svn on 30 May 2003, 20:57:36 UTC
This commit was manufactured by cvs2svn to create tag 'r223'.
Tip revision: 4ce90b3
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