Skip to content

Commit 5d85f4f

Browse files
committed
operator.call -> _testcapi.pyobject_vectorcall
1 parent c5104b8 commit 5d85f4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_sys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,8 +2214,8 @@ def test_jit_is_active(self):
22142214
available = sys._jit.is_available()
22152215
script = textwrap.dedent(
22162216
"""
2217+
import _testcapi
22172218
import _testinternalcapi
2218-
import operator
22192219
import sys
22202220
22212221
def frame_0_interpreter() -> None:
@@ -2230,7 +2230,7 @@ def frame_2_jit(expected: bool) -> None:
22302230
# Inlined into the last loop of frame_3_jit:
22312231
assert sys._jit.is_active() is expected
22322232
# Insert C frame:
2233-
operator.call(frame_1_interpreter)
2233+
_testcapi.pyobject_vectorcall(frame_1_interpreter, None, None)
22342234
assert sys._jit.is_active() is expected
22352235
22362236
def frame_3_jit() -> None:

0 commit comments

Comments
 (0)