Skip to content

Commit 37064ec

Browse files
address test nit
1 parent c481698 commit 37064ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3225,8 +3225,8 @@ def testfunc(n):
32253225
assert "_LOAD_GLOBAL_BUILTIN" not in uops
32263226
assert "_LOAD_CONST_INLINE_BORROW" in uops
32273227
assert "_POP_TOP_NOP" in uops
3228-
pop_top_count = [opname for opname in ex if opname == "_POP_TOP" ]
3229-
assert len(pop_top_count) <= 2
3228+
pop_top_count = len([opname for opname in ex if opname == "_POP_TOP" ])
3229+
assert pop_top_count <= 2
32303230
"""), PYTHON_JIT="1")
32313231
self.assertEqual(result[0].rc, 0, result)
32323232

0 commit comments

Comments
 (0)