[pypy-svn] r79702 - pypy/trunk/pypy/module/_minimal_curses

santagada at codespeak.net santagada at codespeak.net
Wed Dec 1 05:45:19 CET 2010


Author: santagada
Date: Wed Dec  1 05:45:15 2010
New Revision: 79702

Modified:
   pypy/trunk/pypy/module/_minimal_curses/__init__.py
Log:
raise and ImportError instead of py.test.skip so the error is clearer for python
users.



Modified: pypy/trunk/pypy/module/_minimal_curses/__init__.py
==============================================================================
--- pypy/trunk/pypy/module/_minimal_curses/__init__.py	(original)
+++ pypy/trunk/pypy/module/_minimal_curses/__init__.py	Wed Dec  1 05:45:15 2010
@@ -4,7 +4,7 @@
     try:
         import _minimal_curses as _curses   # when running on top of pypy-c
     except ImportError:
-        import py; py.test.skip("no _curses module")    # no _curses at all
+        raise ImportError("no _curses or _minimal_curses module")  # no _curses at all
 
 from pypy.interpreter.mixedmodule import MixedModule
 from pypy.module._minimal_curses import fficurses



More information about the Pypy-commit mailing list