Skip to content

Commit 2647f02

Browse files
committed
test: simplify null byte interactive mode test by removing unnecessary flags
1 parent cfd56e6 commit 2647f02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_cmd_line.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ def test_null_byte_in_interactive_mode(self):
206206
# gh-140594: heap-buffer-underflow in PyOS_StdioReadline when a NUL (\0)
207207
# is present in interactive input. The test ensures that feeding a null
208208
# byte to the interactive prompt does not crash the interpreter.
209-
proc = spawn_python('-I', '-i')
210-
out, _ = proc.communicate(b'\x00', timeout=10)
209+
proc = spawn_python('-i')
210+
proc.communicate(b'\x00', timeout=10)
211211
self.assertEqual(proc.returncode, 0)
212212

213213
def test_relativedir_bug46421(self):

0 commit comments

Comments
 (0)