Commit e83d41ce authored by gary's avatar gary

tweak test to silence unnecessary warning

git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@116000 62d5b8a3-27da-0310-9561-8e5933582275
parent c05c634b
...@@ -49,8 +49,9 @@ def multi_python(test): ...@@ -49,8 +49,9 @@ def multi_python(test):
import sys import sys
sys.exit(1) sys.exit(1)
''') ''')
if subprocess.call([other_executable, '-c', command], env = dict(os.environ)
env=os.environ): env.pop('PYTHONPATH', None)
if subprocess.call([other_executable, '-c', command], env=env):
# the other executable does not have setuptools. Get setuptools. # the other executable does not have setuptools. Get setuptools.
# We will do this using the same tools we are testing, for better or # We will do this using the same tools we are testing, for better or
# worse. Alternatively, we could try using bootstrap. # worse. Alternatively, we could try using bootstrap.
...@@ -67,7 +68,7 @@ def multi_python(test): ...@@ -67,7 +68,7 @@ def multi_python(test):
original_executable = other_executable original_executable = other_executable
other_executable = os.path.join(executable_dir, 'py') other_executable = os.path.join(executable_dir, 'py')
assert not subprocess.call( assert not subprocess.call(
[other_executable, '-c', command], env=os.environ), ( [other_executable, '-c', command], env=env), (
'test set up failed') 'test set up failed')
sample_eggs = test.globs['tmpdir']('sample_eggs') sample_eggs = test.globs['tmpdir']('sample_eggs')
os.mkdir(os.path.join(sample_eggs, 'index')) os.mkdir(os.path.join(sample_eggs, 'index'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment