From ece2cc1c40575d34c879acef5a220080a31ec7d7 Mon Sep 17 00:00:00 2001 From: "Jeong, YunWon" Date: Tue, 24 Feb 2026 00:46:38 +0900 Subject: [PATCH] mark failing tests --- Lib/test/test_monitoring.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Lib/test/test_monitoring.py b/Lib/test/test_monitoring.py index 731fe6fc0..9766f6586 100644 --- a/Lib/test/test_monitoring.py +++ b/Lib/test/test_monitoring.py @@ -1744,6 +1744,7 @@ class TestBranchAndJumpEvents(CheckEvents): ('branch right', 'func', 6, 8), ('branch right', 'func', 2, 10)]) + @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: attribute 'f_lineno' of 'frame' objects is not writable def test_callback_set_frame_lineno(self): def func(s: str) -> int: if s.startswith("t"): @@ -1801,6 +1802,7 @@ class TestBranchConsistency(MonitoringTestBase, unittest.TestCase): for recorder in recorders: sys.monitoring.register_callback(tool, recorder.event_type, None) + @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'code' object has no attribute 'co_branches' def test_simple(self): def func(): @@ -1821,6 +1823,7 @@ class TestBranchConsistency(MonitoringTestBase, unittest.TestCase): self.check_branches(whilefunc) + @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'code' object has no attribute 'co_branches' def test_except_star(self): class Foo: @@ -1839,6 +1842,7 @@ class TestBranchConsistency(MonitoringTestBase, unittest.TestCase): self.check_branches(func) + @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'code' object has no attribute 'co_branches' def test4(self): def foo(n=0): @@ -1849,6 +1853,7 @@ class TestBranchConsistency(MonitoringTestBase, unittest.TestCase): self.check_branches(foo) + @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'code' object has no attribute 'co_branches' def test_async_for(self): async def gen(): @@ -1937,6 +1942,7 @@ class TestLoadSuperAttr(CheckEvents): ] return d["f"], expected + @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: False != True def test_method_call(self): nonopt_func, nonopt_expected = self._super_method_call(optimized=False) opt_func, opt_expected = self._super_method_call(optimized=True) @@ -1988,6 +1994,7 @@ class TestLoadSuperAttr(CheckEvents): ] return d["f"], expected + @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: False != True def test_method_call_error(self): nonopt_func, nonopt_expected = self._super_method_call_error(optimized=False) opt_func, opt_expected = self._super_method_call_error(optimized=True) @@ -2025,6 +2032,7 @@ class TestLoadSuperAttr(CheckEvents): ] return d["f"], expected + @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: False != True def test_attr(self): nonopt_func, nonopt_expected = self._super_attr(optimized=False) opt_func, opt_expected = self._super_attr(optimized=True) @@ -2032,6 +2040,7 @@ class TestLoadSuperAttr(CheckEvents): self.check_events(nonopt_func, recorders=self.RECORDERS, expected=nonopt_expected) self.check_events(opt_func, recorders=self.RECORDERS, expected=opt_expected) + @unittest.expectedFailure # TODO: RUSTPYTHON def test_vs_other_type_call(self): code_template = textwrap.dedent(""" class C: @@ -2122,6 +2131,7 @@ class TestUninitialized(unittest.TestCase, MonitoringTestBase): class TestRegressions(MonitoringTestBase, unittest.TestCase): + @unittest.expectedFailure # TODO: RUSTPYTHON; + inner def test_105162(self): caught = None