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

Import future annotations for pytest 6, Python 3.9 compatibility #756

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

martinhoyer
Copy link
Contributor

Makes testinfra v10.0.0 work with Python 3.9 and pytest 6.2.2, which is being used in CentOS-Stream-9-based distributions.

Resolves #755.

@martinhoyer martinhoyer changed the title Use future annotations for pytest<7 compatibility Import future annotations for pytest 6, Python 3.9 compatibility Feb 14, 2024
@martinhoyer
Copy link
Contributor Author

I've successfully ran tests on RHEL-9 (Python 3.9) with install_requires pytest==6.0.0.
When changed to pytest<6, py tests failed with INTERNALERRORs. Adding therefore a pytest>=6 requirement to the setup.cfg.

@philpep philpep merged commit c82965d into pytest-dev:main Feb 15, 2024
7 checks passed
@philpep
Copy link
Contributor

philpep commented Feb 15, 2024

Sounds reasonable, merged, thanks for this!

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.

Broken compatibility with pytest<7 (pytest.Parser type annotation)
2 participants