1、调用unittest中的方法时报错: ValueError: no such test method in <class 'mytestcase.MyTestCase'>: runTest 原因是因为 sub_class 里缺少 runTest 方法 直接在 testA 的类中增加 def runTest(self): pass 相关文章: 2022-12-23 2022-12-23 2021-07-14 2021-11-22 2022-12-23 2021-09-06 2022-12-23 2022-12-23