Skip to content

Commit 15129a9

Browse files
committed
Comment out test with async for comprehension
1 parent 445ef1e commit 15129a9

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Lib/test/test_asyncgen.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -507,15 +507,16 @@ def __anext__(self):
507507
return self.yielded
508508
self.check_async_iterator_anext(MyAsyncIterWithTypesCoro)
509509

510-
def test_async_gen_aiter(self):
511-
async def gen():
512-
yield 1
513-
yield 2
514-
g = gen()
515-
async def consume():
516-
return [i async for i in aiter(g)]
517-
res = self.loop.run_until_complete(consume())
518-
self.assertEqual(res, [1, 2])
510+
# TODO: RUSTPYTHON: async for gen expression compilation
511+
# def test_async_gen_aiter(self):
512+
# async def gen():
513+
# yield 1
514+
# yield 2
515+
# g = gen()
516+
# async def consume():
517+
# return [i async for i in aiter(g)]
518+
# res = self.loop.run_until_complete(consume())
519+
# self.assertEqual(res, [1, 2])
519520

520521
def test_async_gen_aiter_class(self):
521522
results = []
@@ -1561,6 +1562,7 @@ async def main():
15611562
# res = self.loop.run_until_complete(run())
15621563
# self.assertEqual(res, [i * 2 for i in range(10)])
15631564

1565+
# TODO: RUSTPYTHON: async for gen expression compilation
15641566
# def test_async_gen_expression_02(self):
15651567
# async def wrap(n):
15661568
# await asyncio.sleep(0.01)

0 commit comments

Comments
 (0)