[pypy-commit] pypy default: use a more official interface

arigo noreply at buildbot.pypy.org
Mon Mar 23 23:51:46 CET 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r76539:cd4b2cdca734
Date: 2015-03-23 23:51 +0100
http://bitbucket.org/pypy/pypy/changeset/cd4b2cdca734/

Log:	use a more official interface

diff --git a/pypy/module/pypyjit/test_pypy_c/test_00_model.py b/pypy/module/pypyjit/test_pypy_c/test_00_model.py
--- a/pypy/module/pypyjit/test_pypy_c/test_00_model.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_00_model.py
@@ -62,7 +62,7 @@
                                 stdout=subprocess.PIPE,
                                 stderr=subprocess.PIPE)
         stdout, stderr = pipe.communicate()
-        if getattr(pipe, 'returncode', 0) < 0:
+        if pipe.wait() < 0:
             raise IOError("subprocess was killed by signal %d" % (
                 pipe.returncode,))
         if stderr.startswith('SKIP:'):


More information about the pypy-commit mailing list