{
  "id": "python/unittest-skip-decorator-not-working",
  "signature": "TypeError: skip() takes exactly one argument (0 given)",
  "signature_zh": "类型错误：skip() 恰好接受一个参数（给定 0 个）",
  "regex": "TypeError:\\ skip\\(\\)\\ takes\\ exactly\\ one\\ argument\\ \\(0\\ given\\)",
  "domain": "python",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "Using @unittest.skip without a reason string.",
  "root_cause_type": "generic",
  "root_cause_zh": "使用 @unittest.skip 而没有提供原因字符串。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "skip is a function that requires a reason argument.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "skipIf requires two arguments: condition and reason.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.99,
      "how": "@unittest.skip('reason for skipping')\ndef test_foo(self):\n    ...",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.98,
      "how": "@pytest.mark.skip(reason='reason for skipping')",
      "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-11-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}