{
  "id": "python/pytest-timeout-plugin-error",
  "signature": "pytest.PytestConfigWarning: Unknown config option: timeout\nE   Failed: Timeout >300.0s",
  "signature_zh": "pytest.PytestConfigWarning: 未知配置项: timeout\nE   Failed: 超时 >300.0s",
  "regex": "pytest\\.PytestConfigWarning:\\ Unknown\\ config\\ option:\\ timeout\\\nE\\ \\ \\ Failed:\\ Timeout\\ >300\\.0s",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "`timeout` in pytest config requires the `pytest-timeout` plugin. Without it, the option is ignored, or with it, the test genuinely exceeded the limit.",
  "root_cause_type": "generic",
  "root_cause_zh": "pytest 配置中的 `timeout` 需要 `pytest-timeout` 插件。未安装时该选项被忽略；已安装时测试确实超时。",
  "versions": [
    {
      "version": "2.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Long-running tests can hang CI indefinitely.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Disables the timeout entirely, defeating the purpose.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.92,
      "how": "pip install pytest-timeout, then configure:\n[tool.pytest.ini_options]\ntimeout = 60\ntimeout_method = \"thread\"",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Investigate the slow test with `pytest --durations=10` to identify the bottleneck before raising the limit.",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-12-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}