aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra_tests/test_os.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra_tests/test_os.py b/extra_tests/test_os.py
index 0f60f370b8..334590df21 100644
--- a/extra_tests/test_os.py
+++ b/extra_tests/test_os.py
@@ -62,11 +62,11 @@ if hasattr(os, "execv"):
pid = os.fork()
if pid == 0:
os.execve("/bin/sh",
- ["sh", "-c", "echo -n $ddd > /tmp/onefile2"],
+ ["sh", "-c", "echo $ddd > /tmp/onefile2"],
{'ddd': 'xxx'},
)
os.waitpid(pid, 0)
- assert open("/tmp/onefile2").read() == "xxx"
+ assert open("/tmp/onefile2").read().rstrip() == "xxx"
os.unlink("/tmp/onefile2")
def test_execve_unicode():