diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index 2bdd5fc8d..8da74ff53 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -136,6 +136,7 @@ class FinalizationTest(unittest.TestCase): self.assertEqual(len(resurrected), 1) self.assertIsInstance(resurrected[0].gi_code, types.CodeType) + @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: is not None def test_exhausted_generator_frame_cycle(self): def g(): yield @@ -304,6 +305,7 @@ class GeneratorTest(unittest.TestCase): self.assertEqual([1, 2], list(i for i in C())) + @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: False is not true def test_close_clears_frame(self): # gh-142766: Test that closing a generator clears its frame class DetectDelete: