[pypy-svn] pypy subrepo-removal: skip the lib pypy stackless tests if greenlet is missing

RonnyPfannschmidt commits-noreply at bitbucket.org
Mon Mar 21 22:26:32 CET 2011


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

Log:	skip the lib pypy stackless tests if greenlet is missing

diff --git a/pypy/module/test_lib_pypy/test_stackless.py b/pypy/module/test_lib_pypy/test_stackless.py
--- a/pypy/module/test_lib_pypy/test_stackless.py
+++ b/pypy/module/test_lib_pypy/test_stackless.py
@@ -3,6 +3,8 @@
 class AppTest_Stackless:
 
     def setup_class(cls):
+        import py.test
+        py.test.importorskip('greenlet')
         space = gettestobjspace(usemodules=('_stackless', '_socket'))
         cls.space = space
         # cannot test the unpickle part on top of py.py


More information about the Pypy-commit mailing list