Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0752992

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎tests/test_messaging.py‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /