Commits

Armin Rigo committed 3643242

Skip test_zintegration if we can't find 'virtualenv'.

Comments (0)

Files changed (1)

testing/test_zintegration.py

 
 def create_venv(name):
     tmpdir = udir.join(name)
-    subprocess.check_call(['virtualenv', '-p', sys.executable, str(tmpdir)])
+    try:
+        subprocess.check_call(['virtualenv', '-p', sys.executable,
+                               str(tmpdir)])
+    except OSError, e:
+        py.test.skip("Cannot execute virtualenv: %s" % (e,))
 
     site_packages = None
     for dirpath, dirnames, filenames in os.walk(str(tmpdir)):