Skip to content

Commit 976dedb

Browse files
committed
test: remove unnecessary -S and -q flags from null byte test
1 parent b09a4c8 commit 976dedb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_cmd_line.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ def test_null_byte_in_interactive_mode(self):
206206
# gh-140594: heap-buffer-underflow in PyOS_StdioReadline when a NUL (\0) is present in interactive input
207207
with os_helper.EnvironmentVarGuard() as env:
208208
env.unset('PYTHONSTARTUP')
209-
args = [sys.executable, '-I', '-S', '-q', '-i']
209+
# -I: isolated mode (ignore env vars, no user site-packages)
210+
# -i: interactive mode (required to trigger the bug)
211+
args = [sys.executable, '-I', '-i']
210212
p = subprocess.Popen(
211213
args,
212214
stdin=subprocess.PIPE,

0 commit comments

Comments
 (0)