Change pytest.raises to use match instead of matches
This commit is contained in:
parent
34afded06d
commit
a5d9fbe2b0
|
@ -113,7 +113,7 @@ class TestDeprecatedCall(object):
|
|||
pass
|
||||
|
||||
msg = 'Did not produce DeprecationWarning or PendingDeprecationWarning'
|
||||
with pytest.raises(AssertionError, matches=msg):
|
||||
with pytest.raises(AssertionError, match=msg):
|
||||
if mode == 'call':
|
||||
pytest.deprecated_call(f)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue