# AssertionError：assert {'a': 1, 'b': 2} == {'a': 1, 'b': 3}
  省略了 1 个相同项，使用 -vv 显示
  不同项：

- **ID:** `python/pytest-assertion-introspection-noqa`
- **领域:** python
- **类别:** runtime_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

断言差异默认被截断；开发者认为差异缺失，实际上 -vv 会显示它。有时真正的错误是类型不匹配（1 与 '1'）。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 7.x | active | — | — |
| 8.x | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   pytest -vv tests/test_x.py::test_dict
   ```
2. **** (90% 成功率)
   ```
   # pytest.ini
[pytest]
addopts = -vv --showlocals
   ```

## 无效尝试

- **** — Adds noise; the real fix is enabling verbose diff. (70% 失败率)
- **** — unittest diff is also truncated by default. (75% 失败率)
- **** — Only shows the message, not the structured diff. (80% 失败率)
