pycharm Launching unittests with arguments

Posted Lucky&

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pycharm Launching unittests with arguments相关的知识,希望对你有一定的参考价值。

在运行程序时出现

但是代码没有错

源代码是:

 

这是运行时启动了测试

解决方法:

File-> Settings -> Tools -> Python Integrated Tools -> Default test runner ,将py.test改为即可;

 

以上是关于pycharm Launching unittests with arguments的主要内容,如果未能解决你的问题,请参考以下文章