Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad7b40b commit dbc234fCopy full SHA for dbc234f
tests/unit/test_bidi.py
@@ -221,18 +221,12 @@ def cancel_side_effect():
221
222
223
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
-
228
def __init__(self, exception):
229
self.exception = exception
230
231
def __next__(self):
232
raise self.exception
233
234
- next = __next__ # Python 2
235
236
def is_active(self):
237
return False
238
@@ -354,8 +348,6 @@ def __next__(self):
354
348
raise item
355
349
return item
356
350
357
358
359
351
360
352
return self._is_active
361
353
0 commit comments