码迷,mamicode.com
首页 > 其他好文 > 详细

pycharm Launching unittests with arguments

时间:2018-05-13 22:05:00      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:file   pyc   tin   出现   code   解决方法   image   argument   技术分享   

在运行程序时出现

技术分享图片

但是代码没有错

源代码是:

技术分享图片

 

这是运行时启动了测试

解决方法:

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

 

pycharm Launching unittests with arguments

标签:file   pyc   tin   出现   code   解决方法   image   argument   技术分享   

原文地址:https://www.cnblogs.com/xiaokang01/p/9033518.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!