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
|
pass
|
||||||
|
|
||||||
msg = 'Did not produce DeprecationWarning or PendingDeprecationWarning'
|
msg = 'Did not produce DeprecationWarning or PendingDeprecationWarning'
|
||||||
with pytest.raises(AssertionError, matches=msg):
|
with pytest.raises(AssertionError, match=msg):
|
||||||
if mode == 'call':
|
if mode == 'call':
|
||||||
pytest.deprecated_call(f)
|
pytest.deprecated_call(f)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue