def teatDown(cls)
self.assertEqual([], self.verificationErrors)
AttributeError: 'NoneType' object has no attribute 'assertEqual'发布于 2020-04-03 01:36:45
看起来你的teatDown是一个ClassMethod( https://medium.com/@gmotzespina/method-types-in-python-2c95d46281cd)
您应该使用cls.assertEqual([], self.verificationErrors)
希望能有所帮助。
https://stackoverflow.com/questions/60992200
复制相似问题