Skip to content

Commit 81b53bd

Browse files
committed
Run test out of process
1 parent 3a90988 commit 81b53bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3101,6 +3101,7 @@ def testfunc(n):
31013101
def test_143026(self):
31023102
# https://github.com/python/cpython/issues/143026
31033103

3104+
result = script_helper.run_python_until_end('-c', textwrap.dedent("""
31043105
import gc
31053106
thresholds = gc.get_threshold()
31063107
try:
@@ -3113,6 +3114,8 @@ def f1():
31133114
f1()
31143115
finally:
31153116
gc.set_threshold(*thresholds)
3117+
"""), PYTHON_JIT="1")
3118+
self.assertEqual(result[0].rc, 0, result)
31163119

31173120

31183121
def global_identity(x):

0 commit comments

Comments
 (0)