def setUpClass(cls):
# we compile the bytecode with the testing python interpreter
import py_compile
source_py = os.path.join(os.path.dirname(__file__), 'nspkg', 'subpkg', 'bytecode_source.py')
dest_pyc = os.path.join(os.path.dirname(__file__), 'nspkg', 'subpkg', 'bytecode.pyc') # CAREFUL where
py_compile.compile(source_py, dest_pyc, doraise=True)
source_py = os.path.join(os.path.dirname(__file__), 'pkg', 'bytecode_source.py')
dest_pyc = os.path.join(os.path.dirname(__file__), 'pkg', 'bytecode.pyc') # CAREFUL where
py_compile.compile(source_py, dest_pyc, doraise=True)
test_filefinder2_importlib_importmodule.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录