[pypy-svn] pypy subrepo-removal: skip stackless tests if greenlet is not importable

RonnyPfannschmidt commits-noreply at bitbucket.org
Mon Mar 21 17:27:31 CET 2011


Author: Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
Branch: subrepo-removal
Changeset: r42818:d3c9efe4a578
Date: 2011-03-21 17:26 +0100
http://bitbucket.org/pypy/pypy/changeset/d3c9efe4a578/

Log:	skip stackless tests if greenlet is not importable

diff --git a/pypy/module/_stackless/test/conftest.py b/pypy/module/_stackless/test/conftest.py
--- a/pypy/module/_stackless/test/conftest.py
+++ b/pypy/module/_stackless/test/conftest.py
@@ -2,6 +2,7 @@
 import py.test
 
 def pytest_runtest_setup(item):
+    py.test.importorskip('greenlet')
     if sys.platform == 'win32':
         py.test.skip("stackless tests segfault on Windows")
 


More information about the Pypy-commit mailing list