Skip to content

Commit 97e96ba

Browse files
Address review
1 parent 092ecc5 commit 97e96ba

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,6 @@ def test_attr_promotion_failure(self):
23102310
# testing it doesn't crash.
23112311
result = script_helper.run_python_until_end('-c', textwrap.dedent("""
23122312
import _testinternalcapi
2313-
import opcode
23142313
import _opcode
23152314
import email
23162315
@@ -2324,9 +2323,6 @@ def get_first_executor(func):
23242323
pass
23252324
return None
23262325
2327-
def get_opnames(ex):
2328-
return {item[0] for item in ex}
2329-
23302326
def testfunc(n):
23312327
for _ in range(n):
23322328
email.jit_testing = None
@@ -2335,6 +2331,8 @@ def testfunc(n):
23352331
23362332
23372333
testfunc(_testinternalcapi.TIER2_THRESHOLD)
2334+
ex = get_first_executor(testfunc)
2335+
assert ex is not None
23382336
"""), PYTHON_JIT="1")
23392337
self.assertEqual(result[0].rc, 0, result)
23402338

0 commit comments

Comments
 (0)