test_frozen.py

来自「mallet是自然语言处理、机器学习领域的一个开源项目。」· Python 代码 · 共 27 行

PY
27
字号
# Test the frozen module defined in frozen.c.from test_support import TestFailedimport sys, ostry:    import __hello__except ImportError, x:    raise TestFailed, "import __hello__ failed:", xtry:    import __phello__except ImportError, x:    raise TestFailed, "import __phello__ failed:", xtry:    import __phello__.spamexcept ImportError, x:    raise TestFailed, "import __phello__.spam failed:", xtry:    import __phello__.fooexcept ImportError:    passelse:    raise TestFailed, "import __phello__.foo should have failed"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?