Visitar URL original
_abc, _typing and update typing,test_types from 3.14.2 by youknowone · Pull Request #6797 · RustPython/RustPython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
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 on test_types
  • Loading branch information
youknowone committed Jan 19, 2026
commit 5eaf53130adbfbcdcf9788dc5b95bf671b134ce6
1 change: 1 addition & 0 deletions Lib/test/test_functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2922,6 +2922,7 @@ def decorated_classmethod(cls, arg: int) -> str:
'decorated_classmethod'
)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_invalid_registrations(self):
msg_prefix = "Invalid first argument to `register()`: "
msg_suffix = (
Expand Down
2 changes: 2 additions & 0 deletions Lib/test/test_inspect/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -2028,6 +2028,7 @@ def test_pep_695_generics_with_future_annotations_nested_in_function(self):


class TestFormatAnnotation(unittest.TestCase):
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_typing_replacement(self):
from test.typinganndata.ann_module9 import A, ann, ann1
self.assertEqual(inspect.formatannotation(ann), 'Union[List[str], int]')
Expand All @@ -2040,6 +2041,7 @@ def test_typing_replacement(self):
'Union[List[testModule.typing.A], int]',
)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_formatannotationrelativeto(self):
from test.typinganndata.ann_module9 import A, ann1

Expand Down
3 changes: 3 additions & 0 deletions Lib/test/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ def test_method_descriptor_types(self):
self.assertIsInstance(int.from_bytes, types.BuiltinMethodType)
self.assertIsInstance(int.__new__, types.BuiltinMethodType)

@unittest.expectedFailure # TODO: RUSTPYTHON; ModuleNotFoundError: No module named '_queue'
def test_method_descriptor_crash(self):
# gh-132747: The default __get__() implementation in C was unable
# to handle a second argument of None when called from Python
Expand Down Expand Up @@ -1888,6 +1889,7 @@ class D(dict):
D.__getitem__ = dict.__getitem__
self.assertIs(d[None], None)

@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: <class 'tuple'> != <class 'test.test_types.ClassCreationTests.test_tu[41 chars]ass'>
def test_tuple_subclass_as_bases(self):
# gh-132176: it used to crash on using
# tuple subclass for as base classes.
Expand Down Expand Up @@ -2493,6 +2495,7 @@ def ex(a, /, b, *, c):
)


@unittest.skip("TODO: RUSTPYTHON; no subinterpreters yet")
class SubinterpreterTests(unittest.TestCase):

NUMERIC_METHODS = {
Expand Down