Skip to content

pytest generates deprecation warning for message parameter #2890

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

Closed
satra opened this issue Feb 25, 2019 · 0 comments · Fixed by #2903
Closed

pytest generates deprecation warning for message parameter #2890

satra opened this issue Feb 25, 2019 · 0 comments · Fixed by #2903
Milestone

Comments

@satra
Copy link
Member

satra commented Feb 25, 2019

Summary

pytest has deprecated message parameter for checking exceptions. this bloats the testing output for pytest.

Actual behavior

/src/nipype/nipype/algorithms/tests/test_CompCor.py:148

  /src/nipype/nipype/algorithms/tests/test_CompCor.py:148: PytestDeprecationWarning: The 'message' parameter is deprecated.

  (did you mean to use `match='some regex'` to check the exception message?)

  Please comment on https://github.com/pytest-dev/pytest/issues/3974 if you have concerns about removal of this parameter.

    with pytest.raises(ValueError, message='more than one mask file'):

Expected behavior

no warnings from pytest

How to replicate the behavior

current travis tests

Platform details:

travis testing

@effigies effigies added this to the 1.2.0 milestone May 8, 2019
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 a pull request may close this issue.

2 participants