Change pytest.raises to use match instead of matches

This commit is contained in:
Jeffrey Rackauckas 2018-03-27 20:24:15 -07:00
parent 34afded06d
commit a5d9fbe2b0
1 changed files with 1 additions and 1 deletions

View File

@ -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: