Skip to content

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
@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