[pypy-svn] r57192 - pypy/dist/pypy/lang/gameboy/test

cami at codespeak.net cami at codespeak.net
Mon Aug 11 11:55:18 CEST 2008


Author: cami
Date: Mon Aug 11 11:55:17 2008
New Revision: 57192

Modified:
   pypy/dist/pypy/lang/gameboy/test/test_gameboy_implementaton.py
Log:
added import faile check for lib sdl for the gameboy_implementation test


Modified: pypy/dist/pypy/lang/gameboy/test/test_gameboy_implementaton.py
==============================================================================
--- pypy/dist/pypy/lang/gameboy/test/test_gameboy_implementaton.py	(original)
+++ pypy/dist/pypy/lang/gameboy/test/test_gameboy_implementaton.py	Mon Aug 11 11:55:17 2008
@@ -1,10 +1,14 @@
-import py
-from pypy.lang.gameboy.gameboy_implementation import *
-from pypy.lang.gameboy import constants
-
 import py, sys
 from pypy import conftest
 
+from pypy.lang.gameboy import constants
+
+# check if the lib-sdl import fails here
+try:
+    from pypy.lang.gameboy.gameboy_implementation import *
+except ImportError:
+    py.test.skip("lib sdl is not installed")
+
 #
 #  This test file is skipped unless run with "py.test --view".
 #  If it is run as "py.test --view -s", then it interactively asks
@@ -15,6 +19,7 @@
     from AppKit import NSApplication
     NSApplication.sharedApplication()
 
+
 class TestGameBoyImplementation(object):
 
     def setup_method(self, meth):



More information about the Pypy-commit mailing list