GeezerVison is showing github.com — Align bytecode codegen structure with CPython 3.14 (#7588) · RustPython/RustPython@1f1be5e
File treeExpand file treeCollapse file tree Open diff view settings compiler-core/src/bytecode
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: Lib/test/test_compile.py -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1084,7 +1084,6 @@ def unused_block_while_else(): | 1084 | 1084 | self.assertEqual('RETURN_VALUE', opcodes[-1].opname) | 1085 | 1085 | self.assertEqual(None, opcodes[-1].argval) | 1086 | 1086 |
| 1087 | | - @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: 3 != 8 | 1088 | 1087 | def test_false_while_loop(self): | 1089 | 1088 | def break_in_while(): | 1090 | 1089 | while False: | @@ -1103,7 +1102,6 @@ def continue_in_while(): | 1103 | 1102 | self.assertEqual('RETURN_VALUE', opcodes[-1].opname) | 1104 | 1103 | self.assertEqual(None, opcodes[1].argval) | 1105 | 1104 |
| 1106 | | - @unittest.expectedFailure # TODO: RUSTPYTHON | 1107 | 1105 | def test_consts_in_conditionals(self): | 1108 | 1106 | def and_true(x): | 1109 | 1107 | return True and x | |
Collapse file Copy file name to clipboardExpand all lines: Lib/test/test_grammar.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -304,7 +304,6 @@ def test_var_annot_syntax_errors(self): | 304 | 304 | " nonlocal x\n" | 305 | 305 | " x: int\n") | 306 | 306 |
| 307 | | - @unittest.expectedFailure # TODO: RUSTPYTHON | 308 | 307 | def test_var_annot_basic_semantics(self): | 309 | 308 | # execution order | 310 | 309 | with self.assertRaises(ZeroDivisionError): | |
Collapse file Copy file name to clipboardExpand all lines: Lib/test/test_patma.py -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3448,7 +3448,6 @@ def f(command): # 0 | 3448 | 3448 | self.assertListEqual(self._trace(f, "go x"), [1, 2, 4, 5]) | 3449 | 3449 | self.assertListEqual(self._trace(f, "spam"), [1, 2, 4, 6, 7]) | 3450 | 3450 |
| 3451 | | - @unittest.expectedFailure # TODO: RUSTPYTHON | 3452 | 3451 | def test_default_capture(self): | 3453 | 3452 | def f(command): # 0 | 3454 | 3453 | match command.split(): # 1 | @@ -3463,7 +3462,6 @@ def f(command): # 0 | 3463 | 3462 | self.assertListEqual(self._trace(f, "go x"), [1, 2, 4, 5]) | 3464 | 3463 | self.assertListEqual(self._trace(f, "spam"), [1, 2, 4, 6, 7]) | 3465 | 3464 |
| 3466 | | - @unittest.expectedFailure # TODO: RUSTPYTHON | 3467 | 3465 | def test_no_default(self): | 3468 | 3466 | def f(command): # 0 | 3469 | 3467 | match command.split(): # 1 | @@ -3476,7 +3474,6 @@ def f(command): # 0 | 3476 | 3474 | self.assertListEqual(self._trace(f, "go x"), [1, 2, 4, 5]) | 3477 | 3475 | self.assertListEqual(self._trace(f, "spam"), [1, 2, 4]) | 3478 | 3476 |
| 3479 | | - @unittest.expectedFailure # TODO: RUSTPYTHON | 3480 | 3477 | def test_only_default_wildcard(self): | 3481 | 3478 | def f(command): # 0 | 3482 | 3479 | match command.split(): # 1 | @@ -3487,7 +3484,6 @@ def f(command): # 0 | 3487 | 3484 | self.assertListEqual(self._trace(f, "go x"), [1, 2, 3]) | 3488 | 3485 | self.assertListEqual(self._trace(f, "spam"), [1, 2, 3]) | 3489 | 3486 |
| 3490 | | - @unittest.expectedFailure # TODO: RUSTPYTHON | 3491 | 3487 | def test_only_default_capture(self): | 3492 | 3488 | def f(command): # 0 | 3493 | 3489 | match command.split(): # 1 | |
Collapse file Copy file name to clipboardExpand all lines: Lib/test/test_peepholer.py +1-5Lines changed: 1 addition & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -441,6 +441,7 @@ def test_constant_folding_binop(self): | 441 | 441 | self.check_lnotab(code) | 442 | 442 |
| 443 | 443 |
| | 444 | + @unittest.expectedFailure # TODO: RUSTPYTHON | 444 | 445 | def test_constant_folding_remove_nop_location(self): | 445 | 446 | sources = [ | 446 | 447 | """ | @@ -785,15 +786,13 @@ def f(a, b, c): | 785 | 786 | c, b, a = a, b, c | 786 | 787 | self.assertNotInBytecode(f, "SWAP") | 787 | 788 |
| 788 | | - @unittest.expectedFailure # TODO: RUSTPYTHON | 789 | 789 | def test_static_swaps_match_mapping(self): | 790 | 790 | for a, b, c in product("_a", "_b", "_c"): | 791 | 791 | pattern = f"{{'a': {a}, 'b': {b}, 'c': {c}}}" | 792 | 792 | with self.subTest(pattern): | 793 | 793 | code = compile_pattern_with_fast_locals(pattern) | 794 | 794 | self.assertNotInBytecode(code, "SWAP") | 795 | 795 |
| 796 | | - @unittest.expectedFailure # TODO: RUSTPYTHON | 797 | 796 | def test_static_swaps_match_class(self): | 798 | 797 | forms = [ | 799 | 798 | "C({}, {}, {})", | @@ -808,7 +807,6 @@ def test_static_swaps_match_class(self): | 808 | 807 | code = compile_pattern_with_fast_locals(pattern) | 809 | 808 | self.assertNotInBytecode(code, "SWAP") | 810 | 809 |
| 811 | | - @unittest.expectedFailure # TODO: RUSTPYTHON | 812 | 810 | def test_static_swaps_match_sequence(self): | 813 | 811 | swaps = {"*_, b, c", "a, *_, c", "a, b, *_"} | 814 | 812 | forms = ["{}, {}, {}", "{}, {}, *{}", "{}, *{}, {}", "*{}, {}, {}"] | @@ -863,7 +861,6 @@ def f(): | 863 | 861 | y = x + x | 864 | 862 | self.assertInBytecode(f, 'LOAD_FAST_BORROW_LOAD_FAST_BORROW') | 865 | 863 |
| 866 | | - @unittest.expectedFailure # TODO: RUSTPYTHON; RETURN_VALUE | 867 | 864 | def test_load_fast_unknown_simple(self): | 868 | 865 | def f(): | 869 | 866 | if condition(): | @@ -906,7 +903,6 @@ def f5(x=0): | 906 | 903 | self.assertInBytecode(f5, 'LOAD_FAST_BORROW') | 907 | 904 | self.assertNotInBytecode(f5, 'LOAD_FAST_CHECK') | 908 | 905 |
| 909 | | - @unittest.expectedFailure # TODO: RUSTPYTHON; RETURN_VALUE | 910 | 906 | def test_load_fast_known_because_already_loaded(self): | 911 | 907 | def f(): | 912 | 908 | if condition(): | |
Collapse file Copy file name to clipboardExpand all lines: Lib/test/test_pep646_syntax.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 305 | 305 | {'args': StarredB} | 306 | 306 |
| 307 | 307 | >>> def f3(*args: *b, arg1: int): pass | 308 | | - >>> f3.__annotations__ # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE | | 308 | + >>> f3.__annotations__ | 309 | 309 | {'args': StarredB, 'arg1': <class 'int'>} | 310 | 310 |
| 311 | 311 | >>> def f4(*args: *b, arg1: int = 2): pass | 312 | | - >>> f4.__annotations__ # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE | | 312 | + >>> f4.__annotations__ | 313 | 313 | {'args': StarredB, 'arg1': <class 'int'>} | 314 | 314 |
| 315 | 315 | >>> def f5(*args: *b = (1,)): pass # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE | |
Collapse file Copy file name to clipboardExpand all lines: Lib/test/test_sys_settrace.py -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1957,8 +1957,6 @@ def test_jump_out_of_finally_block(output): | 1957 | 1957 | finally: | 1958 | 1958 | output.append(5) | 1959 | 1959 |
| 1960 | | - # TODO: RUSTPYTHON | 1961 | | - @unittest.expectedFailure | 1962 | 1960 | @jump_test(1, 5, [], (ValueError, "into an 'except'")) | 1963 | 1961 | def test_no_jump_into_bare_except_block(output): | 1964 | 1962 | output.append(1) | @@ -1967,8 +1965,6 @@ def test_no_jump_into_bare_except_block(output): | 1967 | 1965 | except: | 1968 | 1966 | output.append(5) | 1969 | 1967 |
| 1970 | | - # TODO: RUSTPYTHON | 1971 | | - @unittest.expectedFailure | 1972 | 1968 | @jump_test(1, 5, [], (ValueError, "into an 'except'")) | 1973 | 1969 | def test_no_jump_into_qualified_except_block(output): | 1974 | 1970 | output.append(1) | |
|