Skip to content

Commit c87c8dc

Browse files
committed
mark failing tests for unittest
1 parent 799c786 commit c87c8dc

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Lib/unittest/test/test_async_case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def tearDownModule():
1111
asyncio.set_event_loop_policy(None)
1212

1313

14+
@unittest.skip("TODO: RUSTPYTHON; requires sys.get_coroutine_origin_tracking_depth()")
1415
class TestAsyncCase(unittest.TestCase):
1516
maxDiff = None
1617

Lib/unittest/test/test_result.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ def test_1(self):
220220
self.assertIs(test_case, test)
221221
self.assertIsInstance(formatted_exc, str)
222222

223+
# TODO: RUSTPYTHON
224+
@unittest.expectedFailure
223225
def test_addFailure_filter_traceback_frames(self):
224226
class Foo(unittest.TestCase):
225227
def test_1(self):
@@ -246,6 +248,8 @@ def get_exc_info():
246248
self.assertEqual(len(dropped), 1)
247249
self.assertIn("raise self.failureException(msg)", dropped[0])
248250

251+
# TODO: RUSTPYTHON
252+
@unittest.expectedFailure
249253
def test_addFailure_filter_traceback_frames_context(self):
250254
class Foo(unittest.TestCase):
251255
def test_1(self):

Lib/unittest/test/testmock/testasync.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,13 +672,16 @@ def __aiter__(self): pass
672672

673673
async def __anext__(self): pass
674674

675+
# TODO: RUSTPYTHON; async for
676+
"""
675677
def test_aiter_set_return_value(self):
676678
mock_iter = AsyncMock(name="tester")
677679
mock_iter.__aiter__.return_value = [1, 2, 3]
678680
async def main():
679681
return [i async for i in mock_iter]
680682
result = run(main())
681683
self.assertEqual(result, [1, 2, 3])
684+
"""
682685

683686
def test_mock_aiter_and_anext_asyncmock(self):
684687
def inner_test(mock_type):
@@ -697,6 +700,8 @@ def inner_test(mock_type):
697700
inner_test(mock_type)
698701

699702

703+
# TODO: RUSTPYTHON; async for
704+
"""
700705
def test_mock_async_for(self):
701706
async def iterate(iterator):
702707
accumulator = []
@@ -730,7 +735,7 @@ def test_set_return_value_iter(mock_type):
730735
731736
with self.subTest(f"set return_value iterator with {mock_type}"):
732737
test_set_return_value_iter(mock_type)
733-
738+
"""
734739

735740
class AsyncMockAssert(unittest.TestCase):
736741
def setUp(self):

0 commit comments

Comments
 (0)