Skip to content

Commit 267114a

Browse files
committed
Fix version comparison
1 parent 8d330ec commit 267114a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest_mpl/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
Actual shape: {actual_shape}
5858
{actual_path}"""
5959

60-
PYTEST_LT_7 = Version(pytest.__version__) < Version("7.0.0")
60+
_pytest_version = Version(pytest.__version__)
61+
PYTEST_LT_7 = _pytest_version < Version("7.0.0")
6162
PYTEST_GE_8_0 = any([_pytest_version.is_devrelease,
6263
_pytest_version.is_prerelease,
6364
_pytest_version >= Version('8.0')])

0 commit comments

Comments
 (0)