diff --git a/testing/test_recwarn.py b/testing/test_recwarn.py index d8b8bbc32..14995243b 100644 --- a/testing/test_recwarn.py +++ b/testing/test_recwarn.py @@ -112,12 +112,12 @@ class TestDeprecatedCall(object): def test_deprecated_call_as_context_manager_no_warning(self): with pytest.raises(pytest.fail.Exception) as ex: with pytest.deprecated_call(): - dep(1) + self.dep(1) assert str(ex.value) == "DID NOT WARN" def test_deprecated_call_as_context_manager(self): with pytest.deprecated_call(): - dep(0) + self.dep(0) def test_deprecated_call_pending(self): def f():