We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 870e364 commit 1486559Copy full SHA for 1486559
Lib/test/test_positional_only_arg.py
@@ -434,11 +434,11 @@ def g():
434
def f(x: not (int is int), /): ...
435
436
# 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)
+ # COMPARE_OP(is), IS_OP (0)
+ # with constant folding we should expect a IS_OP (1)
439
codes = [(i.opname, i.argval) for i in dis.get_instructions(g)]
440
self.assertNotIn(('UNARY_NOT', None), codes)
441
- self.assertIn(('COMPARE_OP', 'is not'), codes)
+ self.assertIn(('IS_OP', 1), codes)
442
443
444
if __name__ == "__main__":
0 commit comments