[pypy-commit] pypy default: simplify, shell=True makes this work as is

mattip noreply at buildbot.pypy.org
Fri Apr 25 09:52:15 CEST 2014


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r70964:a55bcb4345c9
Date: 2014-04-25 10:39 +0300
http://bitbucket.org/pypy/pypy/changeset/a55bcb4345c9/

Log:	simplify, shell=True makes this work as is

diff --git a/rpython/translator/platform/test/test_posix.py b/rpython/translator/platform/test/test_posix.py
--- a/rpython/translator/platform/test/test_posix.py
+++ b/rpython/translator/platform/test/test_posix.py
@@ -9,13 +9,8 @@
     res = host.execute('echo', '42 24')
     assert res.out == '42 24\n'
 
-    if sys.platform == 'win32':
-        # echo is a shell builtin on Windows
-        res = host.execute('cmd', ['/c', 'echo', '42', '24'])
-        assert res.out == '42 24\n'
-    else:
-        res = host.execute('echo', ['42', '24'])
-        assert res.out == '42 24\n'
+    res = host.execute('echo', ['42', '24'])
+    assert res.out == '42 24\n'
 
 class TestMakefile(object):
     platform = host


More information about the pypy-commit mailing list