You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pytest.raises can be used not only as a context manager but also as a function that takes a function to call for specified exception. In that case match parameter cannot be passed to the pytest.raises but can be checked on the returned exception info.
Summary
pytest.raises
can be used not only as a context manager but also as a function that takes a function to call for specified exception. In that casematch
parameter cannot be passed to thepytest.raises
but can be checked on the returned exception info.This line should not trigger PT011 error.
Version
0.11.2
The text was updated successfully, but these errors were encountered: