不能在Python Console中运行pytest

自古美人都是妖i 提交于 2020-05-02 06:07:36

在Python Console中运行pytest发现报错了

 

这是为什么?因为Python Console已经是进入python之后的环境,就像在python自带的IDLE中运行pytest

pytest的运行是不需要进入python环境的,因此可以在Terminal命令行中运行pytest,结果是ok的

 

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!