{
  "id": "python/pytest-benchmark-no-benchmark-fixture",
  "signature": "fixture 'benchmark' not found\nAvailable fixtures: cache, capfd, capsys, monkeypatch, ...",
  "signature_zh": "fixture 'benchmark' 未找到\n可用 fixtures: cache, capfd, capsys, monkeypatch, ...",
  "regex": "fixture\\ 'benchmark'\\ not\\ found\\\nAvailable\\ fixtures:\\ cache,\\ capfd,\\ capsys,\\ monkeypatch,\\ \\.\\.\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "pytest-benchmark is not installed or is installed in a different Python environment than the one running pytest.",
  "root_cause_type": "generic",
  "root_cause_zh": "pytest-benchmark 未安装，或安装在与运行 pytest 不同的 Python 环境中。",
  "versions": [
    {
      "version": "4.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The plugin registers the fixture via entry points; a plain import does not register it if the package is missing.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Shadows the real plugin and provides no timing functionality; tests pass but measure nothing.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "python -m pip install pytest-benchmark\npython -m pytest --benchmark-only -q",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "which pytest\npytest --version\npython -m pytest --version\npython -m pip install pytest-benchmark",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-10-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}