1、问题概述?
运行python脚本的时候,没有正确的执行我选中的脚本范围运行了,如下脚本。
G:\InstallSoftDirectory\PyCharm Community Edition 2023.2.5\plugins\python-ce\helpers\pycharm\_jb_unittest_runner.py
这个主要就是单元测试工具没有选择好造成的。
2、解决办法?
1、File-> Settings

2、Tools-> Python Integrated Tools

3、根据需要选择你何时的单元测试工具
我之前默认的是Autodect 重新选择了Unittests后运行正常

735

被折叠的 条评论
为什么被折叠?



