From: Ben Darnell Date: Tue, 9 Dec 2025 17:10:18 +0000 (-0500) Subject: process_test: Use isolated mode for subprocess tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00dd0802eb60e2c01a40b1b5308596364709abc6;p=thirdparty%2Ftornado.git process_test: Use isolated mode for subprocess tests Prompt customizations (notably the PYTHONSTARTUP file used by vscode's terminal integration) can interfere with tests that run interactive interpreters in a subprocess. Run those interpreters in isolated mode to avoid this problem.) --- diff --git a/tornado/test/process_test.py b/tornado/test/process_test.py index 0fdb9418..1c5cff32 100644 --- a/tornado/test/process_test.py +++ b/tornado/test/process_test.py @@ -141,7 +141,7 @@ class SubprocessTest(AsyncTestCase): @gen_test def test_subprocess(self): subproc = Subprocess( - [sys.executable, "-u", "-i"], + [sys.executable, "-u", "-i", "-I"], stdin=Subprocess.STREAM, stdout=Subprocess.STREAM, stderr=subprocess.STDOUT, @@ -163,7 +163,7 @@ class SubprocessTest(AsyncTestCase): def test_close_stdin(self): # Close the parent's stdin handle and see that the child recognizes it. subproc = Subprocess( - [sys.executable, "-u", "-i"], + [sys.executable, "-u", "-i", "-I"], stdin=Subprocess.STREAM, stdout=Subprocess.STREAM, stderr=subprocess.STDOUT,