Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mark failing tests
  • Loading branch information
youknowone committed Feb 27, 2026
commit fa1e75a809d9ff3964a3c7427690b688a505c957
10 changes: 10 additions & 0 deletions Lib/test/test_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -1744,6 +1744,7 @@ def func(v=1):
('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"):
Expand Down Expand Up @@ -1801,6 +1802,7 @@ def check_branches(self, run_func, test_func=None, tool=TEST_TOOL, recorders=BRA
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():
Expand All @@ -1821,6 +1823,7 @@ def whilefunc(n=0):

self.check_branches(whilefunc)

@unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'code' object has no attribute 'co_branches'
def test_except_star(self):

class Foo:
Expand All @@ -1839,6 +1842,7 @@ def func():

self.check_branches(func)

@unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'code' object has no attribute 'co_branches'
def test4(self):

def foo(n=0):
Expand All @@ -1849,6 +1853,7 @@ def foo(n=0):

self.check_branches(foo)

@unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'code' object has no attribute 'co_branches'
def test_async_for(self):

async def gen():
Expand Down Expand Up @@ -1937,6 +1942,7 @@ def f():
]
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)
Expand Down Expand Up @@ -1988,6 +1994,7 @@ def f():
]
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)
Expand Down Expand Up @@ -2025,13 +2032,15 @@ def f():
]
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)

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:
Expand Down Expand Up @@ -2122,6 +2131,7 @@ def test_get_local_events_uninitialized(self):

class TestRegressions(MonitoringTestBase, unittest.TestCase):

@unittest.expectedFailure # TODO: RUSTPYTHON; + inner
def test_105162(self):
caught = None

Expand Down