# PytestConfigWarning: 未知配置项: junit_suite_name
  warnings.warn(PytestConfigWarning(...))

- **ID:** `python/pytest-slow-warning-config`
- **领域:** python
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

pytest.ini/pyproject.toml 中的某个选项在当前 pytest 版本中不被识别，通常是因为被重命名或移至插件。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 7.x | active | — | — |
| 8.x | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   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`).
   ```
2. **** (85% 成功率)
   ```
   Move plugin-specific options to their plugin's config section, or install the plugin that provides the option.
   ```

## 无效尝试

- **** — Removes other valid options and breaks test discovery. (60% 失败率)
- **** — Blocks upgrades and security fixes without addressing the option. (55% 失败率)
