From faa135acbfcd55f79fb97f7525c8aa6f5a5b6a22 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Fri, 6 Oct 2017 02:08:57 -0400 Subject: bpo-31709: Drop support for asynchronous __aiter__. (#3903) --- Lib/test/test_collections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_collections.py') 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 -- cgit v1.2.1