Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 0 additions & 2 deletions Lib/test/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,6 @@ def unused_block_while_else():
self.assertEqual('RETURN_VALUE', opcodes[-1].opname)
self.assertEqual(None, opcodes[-1].argval)

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

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_consts_in_conditionals(self):
def and_true(x):
return True and x
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ def test_var_annot_syntax_errors(self):
" nonlocal x\n"
" x: int\n")

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_var_annot_basic_semantics(self):
# execution order
with self.assertRaises(ZeroDivisionError):
Expand Down
4 changes: 0 additions & 4 deletions Lib/test/test_patma.py
Original file line number Diff line number Diff line change
Expand Up @@ -3448,7 +3448,6 @@ def f(command): # 0
self.assertListEqual(self._trace(f, "go x"), [1, 2, 4, 5])
self.assertListEqual(self._trace(f, "spam"), [1, 2, 4, 6, 7])

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

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

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

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_only_default_capture(self):
def f(command): # 0
match command.split(): # 1
Expand Down
6 changes: 1 addition & 5 deletions Lib/test/test_peepholer.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ def test_constant_folding_binop(self):
self.check_lnotab(code)


@unittest.expectedFailure # TODO: RUSTPYTHON
def test_constant_folding_remove_nop_location(self):
sources = [
"""
Expand Down Expand Up @@ -785,15 +786,13 @@ def f(a, b, c):
c, b, a = a, b, c
self.assertNotInBytecode(f, "SWAP")

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

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_static_swaps_match_class(self):
forms = [
"C({}, {}, {})",
Expand All @@ -808,7 +807,6 @@ def test_static_swaps_match_class(self):
code = compile_pattern_with_fast_locals(pattern)
self.assertNotInBytecode(code, "SWAP")

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_static_swaps_match_sequence(self):
swaps = {"*_, b, c", "a, *_, c", "a, b, *_"}
forms = ["{}, {}, {}", "{}, {}, *{}", "{}, *{}, {}", "*{}, {}, {}"]
Expand Down Expand Up @@ -863,7 +861,6 @@ def f():
y = x + x
self.assertInBytecode(f, 'LOAD_FAST_BORROW_LOAD_FAST_BORROW')

@unittest.expectedFailure # TODO: RUSTPYTHON; RETURN_VALUE
def test_load_fast_unknown_simple(self):
def f():
if condition():
Expand Down Expand Up @@ -906,7 +903,6 @@ def f5(x=0):
self.assertInBytecode(f5, 'LOAD_FAST_BORROW')
self.assertNotInBytecode(f5, 'LOAD_FAST_CHECK')

@unittest.expectedFailure # TODO: RUSTPYTHON; RETURN_VALUE
def test_load_fast_known_because_already_loaded(self):
def f():
if condition():
Expand Down
4 changes: 2 additions & 2 deletions Lib/test/test_pep646_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@
{'args': StarredB}

>>> def f3(*args: *b, arg1: int): pass
>>> f3.__annotations__ # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
>>> f3.__annotations__
{'args': StarredB, 'arg1': <class 'int'>}

>>> def f4(*args: *b, arg1: int = 2): pass
>>> f4.__annotations__ # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
>>> f4.__annotations__
{'args': StarredB, 'arg1': <class 'int'>}

>>> def f5(*args: *b = (1,)): pass # TODO: RUSTPYTHON # doctest: +EXPECTED_FAILURE
Expand Down
4 changes: 0 additions & 4 deletions Lib/test/test_sys_settrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1957,8 +1957,6 @@ def test_jump_out_of_finally_block(output):
finally:
output.append(5)

# TODO: RUSTPYTHON
@unittest.expectedFailure
@jump_test(1, 5, [], (ValueError, "into an 'except'"))
def test_no_jump_into_bare_except_block(output):
output.append(1)
Expand All @@ -1967,8 +1965,6 @@ def test_no_jump_into_bare_except_block(output):
except:
output.append(5)

# TODO: RUSTPYTHON
@unittest.expectedFailure
@jump_test(1, 5, [], (ValueError, "into an 'except'"))
def test_no_jump_into_qualified_except_block(output):
output.append(1)
Expand Down
Loading
Loading