summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_positional_only_arg.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_positional_only_arg.py')
-rw-r--r--Lib/test/test_positional_only_arg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_positional_only_arg.py b/Lib/test/test_positional_only_arg.py
index bf332e5..0a9503e 100644
--- a/Lib/test/test_positional_only_arg.py
+++ b/Lib/test/test_positional_only_arg.py
@@ -434,11 +434,11 @@ class PositionalOnlyTestCase(unittest.TestCase):
def f(x: not (int is int), /): ...
# without constant folding we end up with
- # COMPARE_OP(is), UNARY_NOT
- # 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)
codes = [(i.opname, i.argval) for i in dis.get_instructions(g)]
self.assertNotIn(('UNARY_NOT', None), codes)
- self.assertIn(('COMPARE_OP', 'is not'), codes)
+ self.assertIn(('IS_OP', 1), codes)
if __name__ == "__main__":