Skip to content

Commit dbc234f

Browse files
committed
chore: drop Python2-specific aliases
1 parent ad7b40b commit dbc234f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/unit/test_bidi.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,18 +221,12 @@ def cancel_side_effect():
221221

222222

223223
class ClosedCall(object):
224-
# NOTE: This is needed because defining `.next` on an **instance**
225-
# rather than the **class** will not be iterable in Python 2.
226-
# This is problematic since a `Mock` just sets members.
227-
228224
def __init__(self, exception):
229225
self.exception = exception
230226

231227
def __next__(self):
232228
raise self.exception
233229

234-
next = __next__ # Python 2
235-
236230
def is_active(self):
237231
return False
238232

@@ -354,8 +348,6 @@ def __next__(self):
354348
raise item
355349
return item
356350

357-
next = __next__ # Python 2
358-
359351
def is_active(self):
360352
return self._is_active
361353

0 commit comments

Comments
 (0)