Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/test/test_subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ def test_one_environment_variable(self):
cmd = ["CMD", "/c", "SET", "fruit"]
with subprocess.Popen(cmd, stdout=subprocess.PIPE, env=newenv) as p:
Comment thread
aisk marked this conversation as resolved.
Outdated
stdout, _ = p.communicate()
Comment thread
aisk marked this conversation as resolved.
Outdated
self.assertTrue(stdout.startswith(b"fruit=orange"))
self.assertEqual(stdout.strip(), b"fruit=orange")

def test_invalid_cmd(self):
# null character in the command name
Expand Down