[pypy-svn] r67828 - pypy/trunk/pypy/lib/app_test/ctypes_tests

arigo at codespeak.net arigo at codespeak.net
Mon Sep 21 15:51:56 CEST 2009


Author: arigo
Date: Mon Sep 21 15:51:55 2009
New Revision: 67828

Modified:
   pypy/trunk/pypy/lib/app_test/ctypes_tests/conftest.py
Log:
These tests are meant to be run on top of pypy-c only.
There are issues with different versions of ctypes.


Modified: pypy/trunk/pypy/lib/app_test/ctypes_tests/conftest.py
==============================================================================
--- pypy/trunk/pypy/lib/app_test/ctypes_tests/conftest.py	(original)
+++ pypy/trunk/pypy/lib/app_test/ctypes_tests/conftest.py	Mon Sep 21 15:51:55 2009
@@ -1,6 +1,12 @@
 import py
 import sys
 
+class Directory(py.test.collect.Directory):
+    def collect(self):
+        if '__pypy__' not in sys.builtin_module_names:
+            py.test.skip("these tests are meant to be run on top of pypy-c")
+        return super(Directory, self).collect()
+
 def compile_so_file():
     from pypy.translator.platform import platform
     from pypy.translator.tool.cbuild import ExternalCompilationInfo



More information about the Pypy-commit mailing list