{
  "id": "python/pytest-slow-warning-config",
  "signature": "PytestConfigWarning: Unknown config option: junit_suite_name\n  warnings.warn(PytestConfigWarning(...))",
  "signature_zh": "PytestConfigWarning: 未知配置项: junit_suite_name\n  warnings.warn(PytestConfigWarning(...))",
  "regex": "PytestConfigWarning:\\ Unknown\\ config\\ option:\\ junit_suite_name\\\n\\ \\ warnings\\.warn\\(PytestConfigWarning\\(\\.\\.\\.\\)\\)",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "An option in pytest.ini/pyproject.toml is not recognized by the installed pytest version, often because it was renamed or moved to a plugin.",
  "root_cause_type": "generic",
  "root_cause_zh": "pytest.ini/pyproject.toml 中的某个选项在当前 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": "Removes other valid options and breaks test discovery.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Blocks upgrades and security fixes without addressing the option.",
      "fail_rate": 0.55,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Check the current option name with `pytest --help | grep junit` and update pyproject.toml accordingly (e.g. `junit_suite_name` → `junit_suite_name` is valid in 7.x+; for older, use `--junit-suite-name`).",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Move plugin-specific options to their plugin's config section, or install the plugin that provides the option.",
      "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.81,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-10-03",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}