diff options
author | Stefano Rivera <stefano@rivera.za.net> | 2020-10-10 09:02:44 -0700 |
---|---|---|
committer | Stefano Rivera <stefano@rivera.za.net> | 2020-10-10 09:02:44 -0700 |
commit | ac05510ad4c898ff8d18ed38bbfa036a34bde065 (patch) | |
tree | 49b820905700730f8ca7a07544aba0bc17f7265a /extra_tests | |
parent | This test failure is known MacOS issue. We'll just have to live with a more l... (diff) | |
download | pypy-ac05510ad4c898ff8d18ed38bbfa036a34bde065.tar.gz pypy-ac05510ad4c898ff8d18ed38bbfa036a34bde065.tar.bz2 pypy-ac05510ad4c898ff8d18ed38bbfa036a34bde065.zip |
Drop -n, on MacOS, the builtin echo in sh doesn't support -n
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(): |