{
  "id": "python/pytest-warnings-summary",
  "signature": "PytestUnraisableExceptionWarning: Exception ignored in: <function ...>",
  "signature_zh": "PytestUnraisableExceptionWarning: 异常被忽略: <function ...>",
  "regex": "PytestUnraisableExceptionWarning:\\ Exception\\ ignored\\ in:\\ <function\\ \\.\\.\\.>",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "An exception was raised in a context where it cannot be propagated, such as in a __del__ method or during garbage collection.",
  "root_cause_type": "generic",
  "root_cause_zh": "在无法传播异常的上下文中引发了异常，例如在 __del__ 方法中或垃圾回收期间。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This hides the underlying issue, which may cause resource leaks or incorrect behavior.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This suppresses all warnings, potentially hiding other important issues.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Run pytest with -W error::pytest.PytestUnraisableExceptionWarning to turn the warning into an error and get a traceback.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Replace __del__ with explicit close() methods and use contextlib.closing or context managers to guarantee cleanup.",
      "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.8,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-08-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}