Skip to content

Commit 1486559

Browse files
committed
Update test result.
1 parent 870e364 commit 1486559

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_positional_only_arg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,11 @@ def g():
434434
def f(x: not (int is int), /): ...
435435

436436
# without constant folding we end up with
437-
# COMPARE_OP(is), UNARY_NOT
438-
# with constant folding we should expect a COMPARE_OP(is not)
437+
# COMPARE_OP(is), IS_OP (0)
438+
# with constant folding we should expect a IS_OP (1)
439439
codes = [(i.opname, i.argval) for i in dis.get_instructions(g)]
440440
self.assertNotIn(('UNARY_NOT', None), codes)
441-
self.assertIn(('COMPARE_OP', 'is not'), codes)
441+
self.assertIn(('IS_OP', 1), codes)
442442

443443

444444
if __name__ == "__main__":

0 commit comments

Comments
 (0)