GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Align bytecode codegen structure with CPython 3.14 (#7588) · RustPython/RustPython@1f1be5e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Lib/test
    • test_compile.py
    • test_grammar.py
    • test_patma.py
    • test_peepholer.py
    • test_pep646_syntax.py
    • test_sys_settrace.py
  • crates
    • codegen/src
      • compile.rs
      • ir.rs
      • snapshots
        • rustpython_codegen__compile__tests__bare_function_annotations_check_attribute_and_subscript_expressions.snap
        • rustpython_codegen__compile__tests__constant_true_if_pass_keeps_line_anchor_nop.snap
        • rustpython_codegen__compile__tests__if_ands.snap
        • rustpython_codegen__compile__tests__if_mixed.snap
        • rustpython_codegen__compile__tests__if_ors.snap
        • rustpython_codegen__compile__tests__nested_double_async_with.snap
      • symboltable.rs
    • compiler-core/src/bytecode
      • instruction.rs
    • vm/src
      • builtins
        • code.rs
      • frame.rs
      • import.rs
      • stdlib
        • _ast.rs
        • _ctypes
          • simple.rs
        • _imp.rs
        • marshal.rs
      • types
        • slot.rs
      • vm
        • compile.rs
  • scripts
    • dis_dump.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Lib/test/test_compile.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_compile.py
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,6 @@ def unused_block_while_else():
10841084
self.assertEqual('RETURN_VALUE', opcodes[-1].opname)
10851085
self.assertEqual(None, opcodes[-1].argval)
10861086

1087-
@unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: 3 != 8
10881087
def test_false_while_loop(self):
10891088
def break_in_while():
10901089
while False:
@@ -1103,7 +1102,6 @@ def continue_in_while():
11031102
self.assertEqual('RETURN_VALUE', opcodes[-1].opname)
11041103
self.assertEqual(None, opcodes[1].argval)
11051104

1106-
@unittest.expectedFailure # TODO: RUSTPYTHON
11071105
def test_consts_in_conditionals(self):
11081106
def and_true(x):
11091107
return True and x
Collapse file

‎Lib/test/test_grammar.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_grammar.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ def test_var_annot_syntax_errors(self):
304304
" nonlocal x\n"
305305
" x: int\n")
306306

307-
@unittest.expectedFailure # TODO: RUSTPYTHON
308307
def test_var_annot_basic_semantics(self):
309308
# execution order
310309
with self.assertRaises(ZeroDivisionError):
Collapse file

‎Lib/test/test_patma.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_patma.py
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3448,7 +3448,6 @@ def f(command): # 0
34483448
self.assertListEqual(self._trace(f, "go x"), [1, 2, 4, 5])
34493449
self.assertListEqual(self._trace(f, "spam"), [1, 2, 4, 6, 7])
34503450

3451-
@unittest.expectedFailure # TODO: RUSTPYTHON
34523451
def test_default_capture(self):
34533452
def f(command): # 0
34543453
match command.split(): # 1
@@ -3463,7 +3462,6 @@ def f(command): # 0
34633462
self.assertListEqual(self._trace(f, "go x"), [1, 2, 4, 5])
34643463
self.assertListEqual(self._trace(f, "spam"), [1, 2, 4, 6, 7])
34653464

3466-
@unittest.expectedFailure # TODO: RUSTPYTHON
34673465
def test_no_default(self):
34683466
def f(command): # 0
34693467
match command.split(): # 1
@@ -3476,7 +3474,6 @@ def f(command): # 0
34763474
self.assertListEqual(self._trace(f, "go x"), [1, 2, 4, 5])
34773475
self.assertListEqual(self._trace(f, "spam"), [1, 2, 4])
34783476

3479-
@unittest.expectedFailure # TODO: RUSTPYTHON
34803477
def test_only_default_wildcard(self):
34813478
def f(command): # 0
34823479
match command.split(): # 1
@@ -3487,7 +3484,6 @@ def f(command): # 0
34873484
self.assertListEqual(self._trace(f, "go x"), [1, 2, 3])
34883485
self.assertListEqual(self._trace(f, "spam"), [1, 2, 3])
34893486

3490-
@unittest.expectedFailure # TODO: RUSTPYTHON
34913487
def test_only_default_capture(self):
34923488
def f(command): # 0
34933489
match command.split(): # 1
Collapse file

‎Lib/test/test_peepholer.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_peepholer.py
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ def test_constant_folding_binop(self):
441441
self.check_lnotab(code)
442442

443443

444+
@unittest.expectedFailure # TODO: RUSTPYTHON
444445
def test_constant_folding_remove_nop_location(self):
445446
sources = [
446447
"""
@@ -785,15 +786,13 @@ def f(a, b, c):
785786
c, b, a = a, b, c
786787
self.assertNotInBytecode(f, "SWAP")
787788

788-
@unittest.expectedFailure # TODO: RUSTPYTHON
789789
def test_static_swaps_match_mapping(self):
790790
for a, b, c in product("_a", "_b", "_c"):
791791
pattern = f"{{'a': {a}, 'b': {b}, 'c': {c}}}"
792792
with self.subTest(pattern):
793793
code = compile_pattern_with_fast_locals(pattern)
794794
self.assertNotInBytecode(code, "SWAP")
795795

796-
@unittest.expectedFailure # TODO: RUSTPYTHON
797796
def test_static_swaps_match_class(self):
798797
forms = [
799798
"C({}, {}, {})",
@@ -808,7 +807,6 @@ def test_static_swaps_match_class(self):
808807
code = compile_pattern_with_fast_locals(pattern)
809808
self.assertNotInBytecode(code, "SWAP")
810809

811-
@unittest.expectedFailure # TODO: RUSTPYTHON
812810
def test_static_swaps_match_sequence(self):
813811
swaps = {"*_, b, c", "a, *_, c", "a, b, *_"}
814812
forms = ["{}, {}, {}", "{}, {}, *{}", "{}, *{}, {}", "*{}, {}, {}"]
@@ -863,7 +861,6 @@ def f():
863861
y = x + x
864862
self.assertInBytecode(f, 'LOAD_FAST_BORROW_LOAD_FAST_BORROW')
865863

866-
@unittest.expectedFailure # TODO: RUSTPYTHON; RETURN_VALUE
867864
def test_load_fast_unknown_simple(self):
868865
def f():
869866
if condition():
@@ -906,7 +903,6 @@ def f5(x=0):
906903
self.assertInBytecode(f5, 'LOAD_FAST_BORROW')
907904
self.assertNotInBytecode(f5, 'LOAD_FAST_CHECK')
908905

909-
@unittest.expectedFailure # TODO: RUSTPYTHON; RETURN_VALUE
910906
def test_load_fast_known_because_already_loaded(self):
911907
def f():
912908
if condition():
Collapse file

‎Lib/test/test_pep646_syntax.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_pep646_syntax.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,11 @@
305305
{'args': StarredB}
306306
307307
>>> def f3(*args: *b, arg1: int): pass
308-
>>> f3.__annotations__ # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
308+
>>> f3.__annotations__
309309
{'args': StarredB, 'arg1': <class 'int'>}
310310
311311
>>> def f4(*args: *b, arg1: int = 2): pass
312-
>>> f4.__annotations__ # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
312+
>>> f4.__annotations__
313313
{'args': StarredB, 'arg1': <class 'int'>}
314314
315315
>>> def f5(*args: *b = (1,)): pass # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
Collapse file

‎Lib/test/test_sys_settrace.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_sys_settrace.py
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,8 +1957,6 @@ def test_jump_out_of_finally_block(output):
19571957
finally:
19581958
output.append(5)
19591959

1960-
# TODO: RUSTPYTHON
1961-
@unittest.expectedFailure
19621960
@jump_test(1, 5, [], (ValueError, "into an 'except'"))
19631961
def test_no_jump_into_bare_except_block(output):
19641962
output.append(1)
@@ -1967,8 +1965,6 @@ def test_no_jump_into_bare_except_block(output):
19671965
except:
19681966
output.append(5)
19691967

1970-
# TODO: RUSTPYTHON
1971-
@unittest.expectedFailure
19721968
@jump_test(1, 5, [], (ValueError, "into an 'except'"))
19731969
def test_no_jump_into_qualified_except_block(output):
19741970
output.append(1)

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.