Skip to content

Commit c165f36

Browse files
committed
[chore] Rename pytest teardown methods from deprecated teardown to teardown_method (#768)
1 parent ac37a38 commit c165f36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_messaging.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ def test_aps_alert_custom_data_override(self):
15861586

15871587
class TestTimeout:
15881588

1589-
def teardown(self):
1589+
def teardown_method(self):
15901590
testutils.cleanup_apps()
15911591

15921592
def _instrument_service(self, url, response):

tests/test_token_gen.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -853,5 +853,5 @@ def _instrument_session(self, app):
853853
request.session.mount('https://', testutils.MockAdapter(MOCK_PUBLIC_CERTS, 200, recorder))
854854
return recorder
855855

856-
def teardown(self):
856+
def teardown_method(self):
857857
testutils.cleanup_apps()

0 commit comments

Comments
 (0)