aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Rivera <stefano@rivera.za.net>2020-10-10 09:38:55 -0700
committerStefano Rivera <stefano@rivera.za.net>2020-10-10 09:38:55 -0700
commitd352c73625ec9c01d892d741eceb1903e0d8ffd1 (patch)
tree45519955eea513f4e83ab8a58c18cbf2d7b708cb /extra_tests
parentmerge default into stdlib-2.7.18-3 (diff)
parentWe now have an nt_pypy scheme (diff)
downloadpypy-d352c73625ec9c01d892d741eceb1903e0d8ffd1.tar.gz
pypy-d352c73625ec9c01d892d741eceb1903e0d8ffd1.tar.bz2
pypy-d352c73625ec9c01d892d741eceb1903e0d8ffd1.zip
merge default into stdlib-2.7.18-3
Diffstat (limited to 'extra_tests')
-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():