Skip to content

Commit 2ebd702

Browse files
authored
Compiler parity: docstring dedent, StopIteration wrapper, constant folding (#7530)
1 parent 6826557 commit 2ebd702

File tree

12 files changed

+961
-139
lines changed

12 files changed

+961
-139
lines changed

Lib/test/test_contextlib.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ def woohoo():
9999
raise ZeroDivisionError()
100100
self.assertEqual(state, [1, 42, 999])
101101

102-
# TODO: RUSTPYTHON
103-
@unittest.expectedFailure
104102
def test_contextmanager_traceback(self):
105103
@contextmanager
106104
def f():

Lib/test/test_contextlib_async.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ async def woohoo():
252252
raise ZeroDivisionError(999)
253253
self.assertEqual(state, [1, 42, 999])
254254

255-
@unittest.expectedFailure # TODO: RUSTPYTHON
256255
async def test_contextmanager_except_stopiter(self):
257256
@asynccontextmanager
258257
async def woohoo():

Lib/test/test_peepholer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ def f():
132132
self.assertInBytecode(f, 'LOAD_CONST', None)
133133
self.check_lnotab(f)
134134

135-
@unittest.expectedFailure # TODO: RUSTPYTHON; RETURN_VALUE
136135
def test_while_one(self):
137136
# Skip over: LOAD_CONST trueconst POP_JUMP_IF_FALSE xx
138137
def f():
@@ -545,7 +544,6 @@ def f(cond, true_value, false_value):
545544
self.assertEqual(len(returns), 2)
546545
self.check_lnotab(f)
547546

548-
@unittest.expectedFailure # TODO: RUSTPYTHON; absolute jump encoding
549547
def test_elim_jump_to_uncond_jump(self):
550548
# POP_JUMP_IF_FALSE to JUMP_FORWARD --> POP_JUMP_IF_FALSE to non-jump
551549
def f():

0 commit comments

Comments
 (0)