diff options
author | Stefano Rivera <stefano@rivera.za.net> | 2020-10-10 09:38:55 -0700 |
---|---|---|
committer | Stefano Rivera <stefano@rivera.za.net> | 2020-10-10 09:38:55 -0700 |
commit | d352c73625ec9c01d892d741eceb1903e0d8ffd1 (patch) | |
tree | 45519955eea513f4e83ab8a58c18cbf2d7b708cb /extra_tests | |
parent | merge default into stdlib-2.7.18-3 (diff) | |
parent | We now have an nt_pypy scheme (diff) | |
download | pypy-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.py | 4 |
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(): |