# 一、问题描述
pycharm 运行程序时,不是 run xxx 的格式。而是 python tests in xxx 的格式,如下图所示

# 二、问题原因
程序的文件名格式为 test_.py 或 _test.py ,在 pycharm 中自动进入了 pytest 的模式
# 三、解决方案
(1)将 py 文件的文件名称更改为其他格式
(2)进入 File→Settings→Tools→Python integrated Tools ,在 Testing 中将 Default test runner 选项由 pytest 更改为 Unittests
