diff options
author | Yury Selivanov <yury@magic.io> | 2017-10-06 02:08:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-06 02:08:57 -0400 |
commit | faa135acbfcd55f79fb97f7525c8aa6f5a5b6a22 (patch) | |
tree | 8fd008b849b322699e20e18f92a179c06f7b0580 /Lib/test/test_collections.py | |
parent | 86566702f311f8e90600e85350f6b6769a384ea5 (diff) | |
download | cpython-git-faa135acbfcd55f79fb97f7525c8aa6f5a5b6a22.tar.gz |
bpo-31709: Drop support for asynchronous __aiter__. (#3903)
Diffstat (limited to 'Lib/test/test_collections.py')
-rw-r--r-- | Lib/test/test_collections.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index 75defa1273..7e106affbe 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -660,7 +660,7 @@ class TestOneTrickPonyABCs(ABCTestCase): def test_AsyncIterable(self): class AI: - async def __aiter__(self): + def __aiter__(self): return self self.assertTrue(isinstance(AI(), AsyncIterable)) self.assertTrue(issubclass(AI, AsyncIterable)) @@ -674,7 +674,7 @@ class TestOneTrickPonyABCs(ABCTestCase): def test_AsyncIterator(self): class AI: - async def __aiter__(self): + def __aiter__(self): return self async def __anext__(self): raise StopAsyncIteration |