Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 6f3e109f2cad953efb467f0afbb7b61b89914f64 authored by cvs2svn on 22 May 2003, 19:13:35 UTC
This commit was manufactured by cvs2svn to create tag 'r223c1'.
Tip revision: 6f3e109
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