From 5ccb7b1ced6a5593b2af325fab07b43f91d1ec75 Mon Sep 17 00:00:00 2001 From: Buck Golemon Date: Tue, 8 Dec 2015 11:08:33 -0800 Subject: [PATCH] update test_recwarn to new style --- testing/test_recwarn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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():