Author: mattip <[email protected]>
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")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit