[pypy-svn] r62559 - pypy/trunk/pypy/lang/gameboy/test

cami at codespeak.net cami at codespeak.net
Thu Mar 5 10:07:34 CET 2009


Author: cami
Date: Thu Mar  5 10:07:31 2009
New Revision: 62559

Modified:
   pypy/trunk/pypy/lang/gameboy/test/test_gameboy_implementaton.py
Log:
added skip to gameboy_implementation test if the AppKit cant be loaded on MacOS X


Modified: pypy/trunk/pypy/lang/gameboy/test/test_gameboy_implementaton.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/test/test_gameboy_implementaton.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/test/test_gameboy_implementaton.py	Thu Mar  5 10:07:31 2009
@@ -16,9 +16,11 @@
 #
 
 if sys.platform == 'darwin':
-    from AppKit import NSApplication
-    NSApplication.sharedApplication()
-
+    try:
+        from AppKit import NSApplication
+        NSApplication.sharedApplication()
+    except:
+        py.test.skip("Could not load the AppKit")
 
 class TestGameBoyImplementation(object):
 



More information about the Pypy-commit mailing list