Skip to content

Commit

Permalink
Fix version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim authored Jan 6, 2024
1 parent ed0c6a4 commit a1fef16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytest_mpl/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
Actual shape: {actual_shape}
{actual_path}"""

PYTEST_LT_7 = Version(pytest.__version__) < Version("7.0.0")
_pytest_version = Version(pytest.__version__)
PYTEST_LT_7 = _pytest_version < Version("7.0.0")
PYTEST_GE_8_0 = any([_pytest_version.is_devrelease,
_pytest_version.is_prerelease,
_pytest_version >= Version('8.0')])
Expand Down

0 comments on commit a1fef16

Please sign in to comment.