mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Mark erroring tests
This commit is contained in:
1 file changed
+28
Vendored
+28
@@ -467,12 +467,16 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
result = self.loop.run_until_complete(test_throw())
|
||||
self.assertEqual(result, "completed")
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_async_generator_anext(self):
|
||||
async def agen():
|
||||
yield 1
|
||||
yield 2
|
||||
self.check_async_iterator_anext(agen)
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_python_async_iterator_anext(self):
|
||||
class MyAsyncIter:
|
||||
"""Asynchronously yield 1, then 2."""
|
||||
@@ -488,6 +492,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
return self.yielded
|
||||
self.check_async_iterator_anext(MyAsyncIter)
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_python_async_iterator_types_coroutine_anext(self):
|
||||
import types
|
||||
class MyAsyncIterWithTypesCoro:
|
||||
@@ -518,6 +524,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
# res = self.loop.run_until_complete(consume())
|
||||
# self.assertEqual(res, [1, 2])
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'aiter' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_async_gen_aiter_class(self):
|
||||
results = []
|
||||
class Gen:
|
||||
@@ -535,6 +543,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
self.loop.run_until_complete(consume())
|
||||
self.assertEqual(results, [1, 2])
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'aiter' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_aiter_idempotent(self):
|
||||
async def gen():
|
||||
yield 1
|
||||
@@ -542,6 +552,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
applied_twice = aiter(applied_once)
|
||||
self.assertIs(applied_once, applied_twice)
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_anext_bad_args(self):
|
||||
async def gen():
|
||||
yield 1
|
||||
@@ -562,6 +574,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
with self.assertRaises(TypeError):
|
||||
self.loop.run_until_complete(call_with_kwarg())
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_anext_bad_await(self):
|
||||
async def bad_awaitable():
|
||||
class BadAwaitable:
|
||||
@@ -592,6 +606,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
await awaitable
|
||||
return "completed"
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_anext_return_iterator(self):
|
||||
class WithIterAnext:
|
||||
def __aiter__(self):
|
||||
@@ -601,6 +617,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
result = self.loop.run_until_complete(self.check_anext_returning_iterator(WithIterAnext))
|
||||
self.assertEqual(result, "completed")
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_anext_return_generator(self):
|
||||
class WithGenAnext:
|
||||
def __aiter__(self):
|
||||
@@ -610,6 +628,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
result = self.loop.run_until_complete(self.check_anext_returning_iterator(WithGenAnext))
|
||||
self.assertEqual(result, "completed")
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_anext_await_raises(self):
|
||||
class RaisingAwaitable:
|
||||
def __await__(self):
|
||||
@@ -631,6 +651,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
result = self.loop.run_until_complete(do_test())
|
||||
self.assertEqual(result, "completed")
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'anext' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_anext_iter(self):
|
||||
@types.coroutine
|
||||
def _async_yield(v):
|
||||
@@ -744,6 +766,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
run_test(test5)
|
||||
run_test(test6)
|
||||
|
||||
# TODO: RUSTPYTHON, NameError: name 'aiter' is not defined
|
||||
@unittest.expectedFailure
|
||||
def test_aiter_bad_args(self):
|
||||
async def gen():
|
||||
yield 1
|
||||
@@ -1488,6 +1512,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
|
||||
self.assertEqual(messages, [])
|
||||
|
||||
# TODO: RUSTPYTHON, ValueError: not enough values to unpack (expected 1, got 0)
|
||||
@unittest.expectedFailure
|
||||
def test_async_gen_asyncio_shutdown_exception_01(self):
|
||||
messages = []
|
||||
|
||||
@@ -1517,6 +1543,8 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
||||
self.assertIn('an error occurred during closing of asynchronous generator',
|
||||
message['message'])
|
||||
|
||||
# TODO: RUSTPYTHON, ValueError: not enough values to unpack (expected 1, got 0)
|
||||
@unittest.expectedFailure
|
||||
def test_async_gen_asyncio_shutdown_exception_02(self):
|
||||
messages = []
|
||||
|
||||
|
||||
Reference in new issue
Block a user