Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r1226:982940f8c484
Date: 2013-04-03 09:45 +0200
http://bitbucket.org/cffi/cffi/changeset/982940f8c484/
Log: an attempt to not run it on older virtualenvs
diff --git a/testing/test_zintegration.py b/testing/test_zintegration.py
--- a/testing/test_zintegration.py
+++ b/testing/test_zintegration.py
@@ -3,6 +3,18 @@
import subprocess
from testing.udir import udir
+def setup_module(mod):
+ if '__pypy__' in sys.builtin_module_names:
+ try:
+ ver = subprocess.check_output(['virtualenv', '--version'])
+ except OSError as e:
+ py.test.skip("Cannot execute virtualenv: %s" % (e,))
+ # this check is absolutely broken, but I can't think about a better
+ # idea
+ if ((ver.startswith('1.9') and ver <= "1.9.1") or
+ ver[2] != '1'):
+ py.test.skip("pypy requires virtualenv >= 1.9.2")
+
def create_venv(name):
tmpdir = udir.join(name)
try:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit