Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for removal of deprecated path argument to pytest_collect_file() #52

Merged
merged 1 commit into from
Mar 4, 2024

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
19 checks passed
@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