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
mark/unmark tests
  • Loading branch information
ShaharNaveh committed Oct 22, 2025
commit 6902669e2c41d97f7a056c0fcfad790aaef1be95
10 changes: 9 additions & 1 deletion Lib/test/test_functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ def __getitem__(self, key):
f = self.partial(object)
self.assertRaises(TypeError, f.__setstate__, BadSequence())

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_partial_as_method(self):
class A:
meth = self.partial(capture, 1, a=2)
Expand Down Expand Up @@ -464,6 +465,14 @@ def __str__(self):
self.assertIn('astr', r)
self.assertIn("['sth']", r)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_repr(self):
return super().test_repr()

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_recursive_repr(self):
return super().test_recursive_repr()


class TestPartialPy(TestPartial, unittest.TestCase):
module = py_functools
Expand Down Expand Up @@ -658,7 +667,6 @@ def wrapper(b:'This is the prior annotation'):
functools.update_wrapper(wrapper, f)
return wrapper, f

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_default_update(self):
wrapper, f = self._default_update()
self.check_wrapper(wrapper, f)
Expand Down
Loading