{
  "id": "python/pytest-mark-unknown",
  "signature": "PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning.",
  "signature_zh": "PytestUnknownMarkWarning: 未知的 pytest.mark.slow - 是否拼写错误？您可以注册自定义标记以避免此警告。",
  "regex": "PytestUnknownMarkWarning:\\ Unknown\\ pytest\\.mark\\.slow\\ \\-\\ is\\ this\\ a\\ typo\\?\\ You\\ can\\ register\\ custom\\ marks\\ to\\ avoid\\ this\\ warning\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A custom marker such as @pytest.mark.slow is used without being registered in pytest.ini, pyproject.toml, or conftest.py, so pytest treats it as a typo.",
  "root_cause_type": "generic",
  "root_cause_zh": "使用了如 @pytest.mark.slow 的自定义标记，但未在 pytest.ini、pyproject.toml 或 conftest.py 中注册，pytest 将其视为拼写错误。",
  "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": "Silences the warning but --strict-markers will still fail the run, and the marker remains unregistered.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Changes test semantics; skip is not the same as a user-defined tag used for selection.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "# pytest.ini\n[pytest]\nmarkers =\n    slow: marks tests as slow\n    integration: needs external services",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.98,
      "how": "# pyproject.toml\n[tool.pytest.ini_options]\nmarkers = [\n  'slow: marks tests as slow',\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-03-19",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}