2
在我的树莓派模型B,py.test和pytest不同 我是新来的Python和新来的皮... 所以任何线索欢迎树莓派上的py.test&pytest:区别?
如果我看的命令执行我 对于py.test:
#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pytest==2.7.2','console_scripts','py.test'
__requires__ = 'pytest==2.7.2'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pytest==2.7.2', 'console_scripts', 'py.test')()
)
为pytest(如运行蟒蛇-m pytest):
#!/usr/bin/python -u
import warnings
warnings.simplefilter('default', DeprecationWarning)
from logilab.common.pytest import run
run()
有人能解释为什么这些2个语法? 我可以使用一个或另一个(并获得相同的结果)?
非常感谢