Skip to content
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

Exceptions raised with pytest 5.0 #1689

Closed
rouault opened this issue Jun 29, 2019 · 0 comments
Closed

Exceptions raised with pytest 5.0 #1689

rouault opened this issue Jun 29, 2019 · 0 comments

Comments

@rouault
Copy link
Member

rouault commented Jun 29, 2019

pytest 5.0 no longer supports python 2.7, fair enough
more annoying, with python 3, our autotest suite doesn't pass with pytest 5 due to use of deprecated features, such as the 'message' argument of pytest.raises()

>       with pytest.raises(OSError, message='small.rrd still present.'):
E       pytest.PytestDeprecationWarning: The 'message' parameter is deprecated.
E       (did you mean to use `match='some regex'` to check the exception message?)
E       Please see:
E         https://docs.pytest.org/en/4.6-maintenance/deprecations.html#message-parameter-of-pytest-raises

hfa_write.py:164: PytestDeprecationWarning

See https://docs.pytest.org/en/latest/deprecations.html#message-parameter-of-pytest-raises

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

No branches or pull requests

1 participant