[pypy-commit] pypy default: try a hopefully more robust approach

mattip noreply at buildbot.pypy.org
Thu Aug 20 08:13:11 CEST 2015


Author: mattip <matti.picus at gmail.com>
Branch: 
Changeset: r79079:d5e366cc2f51
Date: 2015-08-20 09:13 +0300
http://bitbucket.org/pypy/pypy/changeset/d5e366cc2f51/

Log:	try a hopefully more robust approach

diff --git a/rpython/rlib/rvmprof/test/test_ztranslation.py b/rpython/rlib/rvmprof/test/test_ztranslation.py
--- a/rpython/rlib/rvmprof/test/test_ztranslation.py
+++ b/rpython/rlib/rvmprof/test/test_ztranslation.py
@@ -1,5 +1,4 @@
 import time, os, sys
-sys.path += ['.'] # for subprocess in test_interpreted
 import py
 from rpython.tool.udir import udir
 from rpython.rlib import rvmprof
@@ -59,7 +58,8 @@
 def test_interpreted():
     # takes forever if the Python process is already big...
     import subprocess
-    subprocess.check_call([sys.executable, __file__])
+    env = os.environ.copy()
+    subprocess.check_call([sys.executable, __file__],env=env)
 
 def test_compiled():
     fn = compile(main, [], gcpolicy="minimark")


More information about the pypy-commit mailing list