Skip to content

Commit 73ee5a9

Browse files
authored
Use assertEqual instead of assertEquals for Python 3.11 compatibility. (#152)
1 parent 3d0b360 commit 73ee5a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_imap_timeout_no_exception_handler(self):
165165
out.append(r)
166166
except Timeout:
167167
pass
168-
self.assertEquals(out, [])
168+
self.assertEqual(out, [])
169169

170170
def test_imap_timeout_exception_handler_no_return(self):
171171
"""
@@ -177,7 +177,7 @@ def exception_handler(request, exception):
177177
out = []
178178
for r in grequests.imap(reqs, exception_handler=exception_handler):
179179
out.append(r)
180-
self.assertEquals(out, [])
180+
self.assertEqual(out, [])
181181

182182

183183
def test_imap_timeout_exception_handler_returns_value(self):
@@ -190,7 +190,7 @@ def exception_handler(request, exception):
190190
out = []
191191
for r in grequests.imap(reqs, exception_handler=exception_handler):
192192
out.append(r)
193-
self.assertEquals(out, ['a value'])
193+
self.assertEqual(out, ['a value'])
194194

195195
def test_map_timeout_exception(self):
196196
class ExceptionHandler:

0 commit comments

Comments
 (0)