Pycharm取消默认的右击运行unittest方法:File-> Settings -> Tools -> Python Integrated Tools -> Default test runner ,将Unittests改为py.test即可;