[pypy-svn] r45522 - pypy/dist/pypy/module/_curses/test

fijal at codespeak.net fijal at codespeak.net
Mon Aug 6 16:41:21 CEST 2007


Author: fijal
Date: Mon Aug  6 16:41:19 2007
New Revision: 45522

Modified:
   pypy/dist/pypy/module/_curses/test/test_curses.py
Log:
Skip those tests if database is not there (don't know how to fake it)


Modified: pypy/dist/pypy/module/_curses/test/test_curses.py
==============================================================================
--- pypy/dist/pypy/module/_curses/test/test_curses.py	(original)
+++ pypy/dist/pypy/module/_curses/test/test_curses.py	Mon Aug  6 16:41:19 2007
@@ -8,6 +8,13 @@
 import py
 import sys
 
+def setup_module(mod):
+    try:
+        import curses
+        curses.setupterm()
+    except:
+        py.test.skip("Cannot test this here")
+
 class TestCurses(object):
     """ We need to fork here, to prevent
     the setup to be done


More information about the pypy-svn mailing list