{
  "id": "python/pytest-skip-no-reason",
  "signature": "Skipped: <Skipped instance>",
  "signature_zh": "已跳过：<Skipped 实例>",
  "regex": "Skipped:\\ <Skipped\\ instance>",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "pytest.skip() was called without a reason string, or pytest.mark.skip was used without reason=, producing an unhelpful '<Skipped instance>' message.",
  "root_cause_type": "generic",
  "root_cause_zh": "调用 pytest.skip() 时没有提供原因字符串，或使用 pytest.mark.skip 时没有 reason=，导致出现无用的 '<Skipped instance>' 消息。",
  "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": "-rs shows reasons but there is none to show.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "xfail runs the test; may cause failures on unsupported platforms.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Still lacks a reason string; message remains unhelpful.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "import pytest\n\npytest.skip(\"requires GPU\")\n# or\n@pytest.mark.skip(reason=\"not supported on Windows\")\ndef test_x(): ...",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "@pytest.mark.skipif(sys.platform == 'win32', reason='POSIX only')\ndef test_x(): ...",
      "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-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}