{
  "id": "python/pytest-assertion-introspection-noqa",
  "signature": "AssertionError: assert {'a': 1, 'b': 2} == {'a': 1, 'b': 3}\n  Omitting 1 identical items, use -vv to show\n  Differing items:",
  "signature_zh": "AssertionError：assert {'a': 1, 'b': 2} == {'a': 1, 'b': 3}\n  省略了 1 个相同项，使用 -vv 显示\n  不同项：",
  "regex": "AssertionError:\\ assert\\ \\{'a':\\ 1,\\ 'b':\\ 2\\}\\ ==\\ \\{'a':\\ 1,\\ 'b':\\ 3\\}\\\n\\ \\ Omitting\\ 1\\ identical\\ items,\\ use\\ \\-vv\\ to\\ show\\\n\\ \\ Differing\\ items:",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The assertion diff is truncated by default; developers think the diff is missing when actually -vv would show it. Sometimes the real bug is a type mismatch (1 vs '1').",
  "root_cause_type": "generic",
  "root_cause_zh": "断言差异默认被截断；开发者认为差异缺失，实际上 -vv 会显示它。有时真正的错误是类型不匹配（1 与 '1'）。",
  "versions": [
    {
      "version": "7.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Adds noise; the real fix is enabling verbose diff.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "unittest diff is also truncated by default.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Only shows the message, not the structured diff.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "pytest -vv tests/test_x.py::test_dict",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "# pytest.ini\n[pytest]\naddopts = -vv --showlocals",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}