Skip to content

Conversation

@michaelmanganiello-eb
Copy link

With the current code, introduced in #230, the comparison
pytest.__version__ >= '3.8' returns the wrong result when using
PyTest 3.10, as '3.10' < '3.8' if we use Python's string comparison.

Having PYTEST_VERSION as an integer tuple allows us to have simpler
comparisons.

This fixes the following warning when using PyTest 3.10:

RemovedInPytest4Warning: config.warn has been deprecated, use warnings.warn instead

With the current code, the comparison `pytest.__version__ >= '3.8'`
returns the wrong result when using PyTest 3.10, as `'3.10' < '3.8'` if
we use Python's string comparison.

Having `PYTEST_VERSION` as an integer tuple allows us to have simpler
comparisons.
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