在pycharm中,如果py文件以 test 开头,则运行时会使用pytest执行,pycharm关闭pytest方式如下 File -> Settings -> Tools -> Python Intergrated Tools,右边Testing选择Unittests即可
test
Testing
Unittests