-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fix compatibility with pytest dev/6.2 #141
Conversation
pytest_doctestplus/plugin.py
Outdated
@@ -22,7 +22,7 @@ | |||
|
|||
_pytest_version = Version(pytest.__version__) | |||
PYTEST_GT_5 = _pytest_version > Version('5.9.9') | |||
PYTEST_GT_6_2 = _pytest_version > Version('6.2') | |||
PYTEST_GE_6_3 = _pytest_version >= Version('6.3') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was what I actually started with, but somehow didn't work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I see that :(
It gets more annoying ...
|
@@ -22,7 +22,7 @@ | |||
|
|||
_pytest_version = Version(pytest.__version__) | |||
PYTEST_GT_5 = _pytest_version > Version('5.9.9') | |||
PYTEST_GE_6_3 = _pytest_version >= Version('6.3') | |||
PYTEST_GE_6_3 = _pytest_version.is_devrelease or _pytest_version >= Version('6.3') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or something hacky like this if this doesn't work... 😬
PYTEST_GT_6_2 = _pytest_version > Version('6.2.99')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works ;), so maybe good enough for now ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning up my mess!
My pleasure ;) |
No description provided.