使用pythonunittest.TestCase 运行报错: test_id = test.id() TypeError: 'int' object is not callable 原来我在测试类中自定义了一个id属性冲突了导致 修改即可