Commits

Armin Rigo committed 6d553a5

Don't call %(sys.executable) but simply 'python' here: we are in a
virtualenv.

Comments (0)

Files changed (1)

testing/test_integration.py

     python_f.write(py.code.Source(python_snippet))
     try:
         os.chdir(str(SNIPPET_DIR.join(dirname)))
-        python = sys.executable
         venv = venv_dir.join('bin/activate')
-        p = subprocess.Popen(['bash', '-c', '. %(venv)s && %(python)s setup.py '
-                              'install && %(python)s %(python_f)s' % locals()],
+        p = subprocess.Popen(['bash', '-c', '. %(venv)s && python setup.py '
+                              'install && python %(python_f)s' % locals()],
                              stdout=subprocess.PIPE, stderr=subprocess.PIPE)
         stdout, stderr = p.communicate()
         if p.returncode != 0: