Skip to content

Conversation

davidfritzsche
Copy link
Owner

Replace usage of the path argument to the pytest pytest_collect_file hook with usage of the file_path argument introduced in pytest 7. As pytest 7 is also our oldest supported version, we can rely on the availability of the file_path argument.

This change will help to avoid breakage when a future pytest version drops the deprecated path argument.

Also drops other untested code for pytest < 7 compatibility.

Replace usage of the path argument to the pytest pytest_collect_file
hook with usage of the file_path argument introduced in pytest 7. As
pytest 7 is also our oldest supported version, we can rely on the
availability of the file_path argument.

This change will help to avoid breakage when a future pytest version
drops the deprecated path argument.

Also drops other untested code for pytest < 7 compatibility.
@davidfritzsche davidfritzsche merged commit b366374 into main Mar 4, 2024
@davidfritzsche davidfritzsche deleted the drop-support-for-pytest-lt-7 branch March 4, 2024 22:54
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.

1 participant