assert.AssertionError 类


表明断言的失败。 assert 模块抛出的所有错误都是 AssertionError 类的实例。

Indicates the failure of an assertion. All errors thrown by the assert module will be instances of the AssertionError class.