Visitar URL original
RustPython version to 3.14 by youknowone · Pull Request #6718 · RustPython/RustPython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ea1e60e
mark version to 3.14
youknowone Jan 13, 2026
7594ef5
upgrade site to 3.14.2
youknowone Jan 13, 2026
280caea
upgrade venvlauncher
youknowone Jan 13, 2026
8d901a7
Implement bool(NotImplemented)
youknowone Jan 13, 2026
2fe140f
Fix bytes/bytearray fromhex
youknowone Jan 13, 2026
db01a1d
Remove pickle from itertools
youknowone Jan 13, 2026
eafa0c0
Fix int rounding
youknowone Jan 13, 2026
24bff8d
fix unsigned validation
youknowone Jan 13, 2026
f5b44f5
Fix Exception.__init__
youknowone Jan 13, 2026
0793bd3
co_consts
youknowone Jan 13, 2026
fdfede7
fix win clippy
youknowone Jan 16, 2026
51b6286
PEP 649 annotation phase 1
youknowone Jan 13, 2026
353a9f6
PEP 649 annotation phase 2
youknowone Jan 13, 2026
a78b569
PEP 649 annotation phase 3
youknowone Jan 13, 2026
566b6f4
PEP 649 annotation phase 4
youknowone Jan 14, 2026
dc93614
Add annotationlib,ann_module from 3.14.2
youknowone Jan 15, 2026
37cc6b4
fix whats_left to support __annotate__
youknowone Jan 16, 2026
96038e4
partially patch inspect for PEP 649 in 3.13
youknowone Jan 14, 2026
346481d
partially patch Lib/typing to 3.14
youknowone Jan 15, 2026
076d692
Upgrade string from CPython 3.14.2
Jan 15, 2026
5227938
mark and unmark unittest functions
youknowone Jan 17, 2026
33689c1
Fix jit failure
youknowone Jan 14, 2026
65e08c0
Update ensurepip from 3.14.2
Jan 16, 2026
ef22bf4
Update _colorize from CPython 3.14.2
Jan 16, 2026
d75f272
Update argparse from CPython 3.14.2
Jan 16, 2026
314a615
Update calendar from CPython 3.14.2
Jan 16, 2026
133bdf6
auto_mark_test uses regex to check Run tests? sequentially
youknowone Jan 17, 2026
faeed2c
clean up
youknowone Jan 17, 2026
60fb438
Auto-format: ruff check --select I --fix
github-actions[bot] Jan 17, 2026
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 and unmark unittest functions
  • Loading branch information
youknowone committed Jan 17, 2026
commit 522793850a2757ad7cce5a2a1b3dad09008b60f3
2 changes: 2 additions & 0 deletions Lib/test/test_grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ class F(C, A):
self.assertEqual(F.__annotations__, {})


@unittest.expectedFailure # TODO: RUSTPYTHON
def test_var_annot_metaclass_semantics(self):
class CMeta(type):
@classmethod
Expand Down Expand Up @@ -403,6 +404,7 @@ def test_var_annot_in_module(self):
with self.assertRaises(NameError):
ann_module3.D_bad_ann(5)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_var_annot_simple_exec(self):
gns = {}; lns= {}
exec("'docstring'\n"
Expand Down
12 changes: 0 additions & 12 deletions Lib/test/test_memoryio.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,6 @@ def test_init(self):
def test_issue5449(self):
super().test_issue5449()

def test_pickling(self):
super().test_pickling()

def test_read(self):
super().test_read()

Expand Down Expand Up @@ -907,9 +904,6 @@ def test_newline_none(self):
def test_newlines_property(self):
super().test_newlines_property()

def test_pickling(self):
super().test_pickling()

def test_read(self):
super().test_read()

Expand Down Expand Up @@ -998,17 +992,11 @@ def test_newline_cr(self):
def test_newline_crlf(self):
super().test_newline_crlf()

def test_newline_default(self):
super().test_newline_default()

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

def test_newline_lf(self):
super().test_newline_lf()

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_newline_none(self):
Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_module/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ class M(ModuleType):
melon = Descr()
self.assertRaises(RuntimeError, getattr, M("mymod"), "melon")

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_lazy_create_annotations(self):
# module objects lazy create their __annotations__ dict on demand.
# the annotations dict is stored in module.__dict__.
Expand Down
4 changes: 4 additions & 0 deletions Lib/test/test_opcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,15 @@ def test_default_annotations_exist(self):
class C: pass
self.assertEqual(C.__annotations__, {})

# TODO: RustPython - test expectation changed in 3.14 due to PEP 649
@unittest.expectedFailure
def test_use_existing_annotations(self):
ns = {'__annotations__': {1: 2}}
exec('x: int', ns)
self.assertEqual(ns['__annotations__'], {'x': int, 1: 2})

# TODO: RustPython - test expectation changed in 3.14 due to PEP 649
@unittest.expectedFailure
def test_do_not_recreate_annotations(self):
# Don't rely on the existence of the '__annotations__' global.
with support.swap_item(globals(), '__annotations__', {}):
Expand Down
4 changes: 0 additions & 4 deletions Lib/test/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ def loads(self, buf, **kwds):
def test_c_methods(self): # TODO(RUSTPYTHON): Remove this test when it passes
return super().test_c_methods()



# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_buffers_error(self): # TODO(RUSTPYTHON): Remove this test when it passes
Expand Down Expand Up @@ -227,7 +225,6 @@ def loads(self, buf, **kwds):
def test_c_methods(self): # TODO(RUSTPYTHON): Remove this test when it passes
return super().test_c_methods()


# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_badly_escaped_string(self): # TODO(RUSTPYTHON): Remove this test when it passes
Expand All @@ -243,7 +240,6 @@ def test_correctly_quoted_string(self): # TODO(RUSTPYTHON): Remove this test whe
def test_load_python2_str_as_bytes(self): # TODO(RUSTPYTHON): Remove this test when it passes
return super().test_load_python2_str_as_bytes()


# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_oob_buffers_writable_to_readonly(self): # TODO(RUSTPYTHON): Remove this test when it passes
Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_pickletools.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ def test_oob_buffers(self): # TODO(RUSTPYTHON): Remove this test when it passes
def test_oob_buffers_writable_to_readonly(self): # TODO(RUSTPYTHON): Remove this test when it passes
return super().test_oob_buffers_writable_to_readonly()



# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_c_methods(self): # TODO(RUSTPYTHON): Remove this test when it passes
Expand Down
2 changes: 2 additions & 0 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3803,6 +3803,7 @@ def __init__(self):
self.assertNotIsInstance(B(), P)
self.assertNotIsInstance(C(), P)

@unittest.expectedFailure # TODO: RUSTPYTHON; test doesn't include PEP 649 attrs
def test_non_protocol_subclasses(self):
class P(Protocol):
x = 1
Expand Down Expand Up @@ -6868,6 +6869,7 @@ def test_get_type_hints_modules_forwardref(self):
'default_b': Optional[mod_generics_cache.B]}
self.assertEqual(gth(mod_generics_cache), mgc_hints)

@unittest.expectedFailure # TODO: RUSTPYTHON; test expects outdated result
def test_get_type_hints_classes(self):
self.assertEqual(gth(ann_module.C), # gth will find the right globalns
{'y': Optional[ann_module.C]})
Expand Down