在收集错误、内部错误和 `pytest.exit()` 时, `--fixtures` 和 `--fixtures-per-test` 会以状态码 0 退出
作者: lpyu001创建于 2026年9月17日更新于 2026年9月17日
**1. The session exit status is discarded.** `pytest_cmdline_main()` in `src/_pytest/fixtures.py` (lines 1675–1682) ignores the return value of `showfixtures()` and `show_fixtures_per_test()`:
内容来源: pytest-dev/pytest