Skip to content

Commit b578be8

Browse files
authored
fix(test): Exchange deprecated assert to non-deprecated (#353)
This PR exchanges deprecated assertEquals to assertEqual, which were introduced earlier.
1 parent 0118318 commit b578be8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/frameworks/test_flask.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def test_get_request_with_suppression(self):
121121
self.assertFalse(any(map(lambda x: x.l != 0, spans)))
122122

123123
# Assert that there are no spans in the recorded list
124-
self.assertEquals(spans, [])
124+
self.assertEqual(spans, [])
125125

126126
def test_get_request_with_suppression_and_w3c(self):
127127
headers = {
@@ -146,7 +146,7 @@ def test_get_request_with_suppression_and_w3c(self):
146146
self.assertFalse(any(map(lambda x: x.l != 0, spans)))
147147

148148
# Assert that there are no spans in the recorded list
149-
self.assertEquals(spans, [])
149+
self.assertEqual(spans, [])
150150

151151
def test_synthetic_request(self):
152152
headers = {

0 commit comments

Comments
 (0)