{
  "id": "python/pytest-timeout-test-timeout",
  "signature": "Failed: Timeout (>30.0s) from pytest-timeout.",
  "signature_zh": "Failed: 超时（>30.0s）来自 pytest-timeout。",
  "regex": "Failed:\\ Timeout\\ \\(>30\\.0s\\)\\ from\\ pytest\\-timeout\\.",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "A test exceeds the default 30s timeout, often due to a blocking network call, deadlock, or an infinite loop.",
  "root_cause_type": "generic",
  "root_cause_zh": "测试超过默认的 30 秒超时，通常是由于阻塞的网络调用、死锁或无限循环。",
  "versions": [
    {
      "version": "2.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Hides the underlying hang and can cause CI to run indefinitely.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Makes the test slower and still fails; does not address the root cause.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "@pytest.mark.timeout(120)\ndef test_slow_operation():\n    ...",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "@patch('requests.get')\ndef test_fetch(mock_get):\n    mock_get.return_value.json.return_value = {'ok': True}\n    ...",
      "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.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-10-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}