my_captain

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

 

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

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

 

 

 

分类:

技术点:

相关文章:

  • 2021-06-08
  • 2021-11-20
  • 2021-10-11
  • 2021-04-01
  • 2021-04-07
  • 2021-08-09
  • 2022-12-23
  • 2021-11-19
猜你喜欢
  • 2021-06-16
  • 2021-08-22
  • 2021-08-11
  • 2021-07-14
  • 2021-06-02
  • 2021-04-01
相关资源
相似解决方案