Skip to content

pytest generates deprecation warning for message parameter #2890

Closed
@satra

Description

@satra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions