Skip to content

Commit ac14061

Browse files
committed
fix: use spawn_python
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent 0fc6c4a commit ac14061

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/test/test_pyrepl/test_unix_console.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import termios
77
from functools import partial
88
from test.support import os_helper, force_not_colorized_test_class
9+
from test.support import script_helper
910
import subprocess
1011
import signal
1112
import textwrap
@@ -437,10 +438,8 @@ def create_eio_condition():
437438
signal.pause()
438439
""").strip()
439440

440-
proc = subprocess.Popen(
441-
[sys.executable, "-S", "-c", child_code],
442-
stdin=subprocess.PIPE,
443-
stdout=subprocess.PIPE,
441+
proc = script_helper.spawn_python(
442+
"-S", "-c", child_code,
444443
stderr=subprocess.PIPE,
445444
text=True
446445
)

0 commit comments

Comments
 (0)