玩过一段时间nose的朋友,一定会发现nose中有一个--failed的功能,官方解释为: --failed Run the tests that failed in the last test run. 跑上一次失败的用例. 一.我们看看用法 下面这样一段脚本 def test_aa(): pass def test_bb(): assert 1==2 def testff(): pass def aa_test(): pass def aatest(): pass def aatest_aa