Skip to content

Commit b8c9b38

Browse files
committed
Mark erroring tests
1 parent 15129a9 commit b8c9b38

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Lib/test/test_asyncgen.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,12 +467,16 @@ async def test_throw():
467467
result = self.loop.run_until_complete(test_throw())
468468
self.assertEqual(result, "completed")
469469

470+
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
471+
@unittest.expectedFailure
470472
def test_async_generator_anext(self):
471473
async def agen():
472474
yield 1
473475
yield 2
474476
self.check_async_iterator_anext(agen)
475477

478+
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
479+
@unittest.expectedFailure
476480
def test_python_async_iterator_anext(self):
477481
class MyAsyncIter:
478482
"""Asynchronously yield 1, then 2."""
@@ -488,6 +492,8 @@ async def __anext__(self):
488492
return self.yielded
489493
self.check_async_iterator_anext(MyAsyncIter)
490494

495+
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
496+
@unittest.expectedFailure
491497
def test_python_async_iterator_types_coroutine_anext(self):
492498
import types
493499
class MyAsyncIterWithTypesCoro:
@@ -518,6 +524,8 @@ def __anext__(self):
518524
# res = self.loop.run_until_complete(consume())
519525
# self.assertEqual(res, [1, 2])
520526

527+
# TODO: RUSTPYTHON, NameError: name 'aiter' is not defined
528+
@unittest.expectedFailure
521529
def test_async_gen_aiter_class(self):
522530
results = []
523531
class Gen:
@@ -535,13 +543,17 @@ async def consume():
535543
self.loop.run_until_complete(consume())
536544
self.assertEqual(results, [1, 2])
537545

546+
# TODO: RUSTPYTHON, NameError: name 'aiter' is not defined
547+
@unittest.expectedFailure
538548
def test_aiter_idempotent(self):
539549
async def gen():
540550
yield 1
541551
applied_once = aiter(gen())
542552
applied_twice = aiter(applied_once)
543553
self.assertIs(applied_once, applied_twice)
544554

555+
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
556+
@unittest.expectedFailure
545557
def test_anext_bad_args(self):
546558
async def gen():
547559
yield 1
@@ -562,6 +574,8 @@ async def call_with_kwarg():
562574
with self.assertRaises(TypeError):
563575
self.loop.run_until_complete(call_with_kwarg())
564576

577+
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
578+
@unittest.expectedFailure
565579
def test_anext_bad_await(self):
566580
async def bad_awaitable():
567581
class BadAwaitable:
@@ -592,6 +606,8 @@ async def check_anext_returning_iterator(self, aiter_class):
592606
await awaitable
593607
return "completed"
594608

609+
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
610+
@unittest.expectedFailure
595611
def test_anext_return_iterator(self):
596612
class WithIterAnext:
597613
def __aiter__(self):
@@ -601,6 +617,8 @@ def __anext__(self):
601617
result = self.loop.run_until_complete(self.check_anext_returning_iterator(WithIterAnext))
602618
self.assertEqual(result, "completed")
603619

620+
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
621+
@unittest.expectedFailure
604622
def test_anext_return_generator(self):
605623
class WithGenAnext:
606624
def __aiter__(self):
@@ -610,6 +628,8 @@ def __anext__(self):
610628
result = self.loop.run_until_complete(self.check_anext_returning_iterator(WithGenAnext))
611629
self.assertEqual(result, "completed")
612630

631+
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
632+
@unittest.expectedFailure
613633
def test_anext_await_raises(self):
614634
class RaisingAwaitable:
615635
def __await__(self):
@@ -631,6 +651,8 @@ async def do_test():
631651
result = self.loop.run_until_complete(do_test())
632652
self.assertEqual(result, "completed")
633653

654+
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
655+
@unittest.expectedFailure
634656
def test_anext_iter(self):
635657
@types.coroutine
636658
def _async_yield(v):
@@ -744,6 +766,8 @@ def run_test(test):
744766
run_test(test5)
745767
run_test(test6)
746768

769+
# TODO: RUSTPYTHON, NameError: name 'aiter' is not defined
770+
@unittest.expectedFailure
747771
def test_aiter_bad_args(self):
748772
async def gen():
749773
yield 1
@@ -1488,6 +1512,8 @@ async def main():
14881512

14891513
self.assertEqual(messages, [])
14901514

1515+
# TODO: RUSTPYTHON, ValueError: not enough values to unpack (expected 1, got 0)
1516+
@unittest.expectedFailure
14911517
def test_async_gen_asyncio_shutdown_exception_01(self):
14921518
messages = []
14931519

@@ -1517,6 +1543,8 @@ async def main():
15171543
self.assertIn('an error occurred during closing of asynchronous generator',
15181544
message['message'])
15191545

1546+
# TODO: RUSTPYTHON, ValueError: not enough values to unpack (expected 1, got 0)
1547+
@unittest.expectedFailure
15201548
def test_async_gen_asyncio_shutdown_exception_02(self):
15211549
messages = []
15221550

0 commit comments

Comments
 (0)