[Checkins] SVN: zc.buildout/trunk/src/zc/buildout/testselectingpython.py tweak test to silence unnecessary warning
Gary Poster
gary.poster at canonical.com
Sun Aug 29 15:34:43 EDT 2010
Log message for revision 116000:
tweak test to silence unnecessary warning
Changed:
U zc.buildout/trunk/src/zc/buildout/testselectingpython.py
-=-
Modified: zc.buildout/trunk/src/zc/buildout/testselectingpython.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/testselectingpython.py 2010-08-29 17:09:21 UTC (rev 115999)
+++ zc.buildout/trunk/src/zc/buildout/testselectingpython.py 2010-08-29 19:34:43 UTC (rev 116000)
@@ -49,8 +49,9 @@
import sys
sys.exit(1)
''')
- if subprocess.call([other_executable, '-c', command],
- env=os.environ):
+ env = dict(os.environ)
+ env.pop('PYTHONPATH', None)
+ if subprocess.call([other_executable, '-c', command], env=env):
# the other executable does not have setuptools. Get setuptools.
# We will do this using the same tools we are testing, for better or
# worse. Alternatively, we could try using bootstrap.
@@ -67,7 +68,7 @@
original_executable = other_executable
other_executable = os.path.join(executable_dir, 'py')
assert not subprocess.call(
- [other_executable, '-c', command], env=os.environ), (
+ [other_executable, '-c', command], env=env), (
'test set up failed')
sample_eggs = test.globs['tmpdir']('sample_eggs')
os.mkdir(os.path.join(sample_eggs, 'index'))
More information about the checkins
mailing list