Skip to content

Use start_path instead of startdir#82

Merged
ubscale merged 1 commit into
mainfrom
gaudenz/fix-report-header-pytest-9.1
Jun 15, 2026
Merged

Use start_path instead of startdir#82
ubscale merged 1 commit into
mainfrom
gaudenz/fix-report-header-pytest-9.1

Conversation

@gaudenz

@gaudenz gaudenz commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

The startdir parameter of pytest_report_header is deprecated since PyTest 7.0.0 and no longer supported since 9.1.0 (the removal version in the docs is 9.0.0, but the code only started to break with 9.1.0). It is replaced by the start_path parameter. As the code does not use this value, only the function header needs to be adapted.

See https://docs.pytest.org/en/stable/reference/reference.html#std-hook-pytest_report_header

The startdir parameter of pytest_report_header is deprecated since
PyTest 7.0.0 and no longer supported since 9.1.0 (the removal version in
the docs is 9.0.0, but the code only started to break with 9.1.0). It is
replaced by the start_path parameter. As the code does not use this value,
only the function header needs to be adapted.

See https://docs.pytest.org/en/stable/reference/reference.html#std-hook-pytest_report_header
@ubscale ubscale merged commit c1bbcf1 into main Jun 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants