解决 Python 报错 AssertionError 的排查指南排查与解决 Python assert 断言失败导致抛出 AssertionError 异常的完整方案与测试最佳实践。Python · pytest · Debugging2026.10.19