From a5d9fbe2b0d14a84325e87629a785eda72f7d9f4 Mon Sep 17 00:00:00 2001 From: Jeffrey Rackauckas Date: Tue, 27 Mar 2018 20:24:15 -0700 Subject: [PATCH] Change pytest.raises to use match instead of matches --- testing/test_recwarn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_recwarn.py b/testing/test_recwarn.py index f1cf542e9..1d99a7656 100644 --- a/testing/test_recwarn.py +++ b/testing/test_recwarn.py @@ -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: