test_capi.py

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

PY
17
字号
# Run the _testcapi module tests (tests for the Python/C API):  by defn,# these are all functions _testcapi exports whose name begins with 'test_'.import sysimport test_supportimport _testcapifor name in dir(_testcapi):    if name.startswith('test_'):        test = getattr(_testcapi, name)        if test_support.verbose:            print "internal", name        try:            test()        except _testcapi.error:            raise test_support.TestFailed, sys.exc_info()[1]

⌨️ 快捷键说明

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