[pypy-svn] r57242 - pypy/branch/oo-jit/pypy/jit/codegen/x86_64

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Aug 14 13:07:41 CEST 2008


Author: cfbolz
Date: Thu Aug 14 13:07:40 2008
New Revision: 57242

Added:
   pypy/branch/oo-jit/pypy/jit/codegen/x86_64/conftest.py   (contents, props changed)
Log:
skip the tests on the wrong architecture


Added: pypy/branch/oo-jit/pypy/jit/codegen/x86_64/conftest.py
==============================================================================
--- (empty file)
+++ pypy/branch/oo-jit/pypy/jit/codegen/x86_64/conftest.py	Thu Aug 14 13:07:40 2008
@@ -0,0 +1,16 @@
+import py
+from pypy.jit.codegen import detect_cpu
+
+
+class Directory(py.test.collect.Directory):
+
+    def run(self):
+        try:
+            processor = detect_cpu.autodetect()
+        except detect_cpu.ProcessorAutodetectError, e:
+            py.test.skip(str(e))
+        else:
+            if processor != 'x86_64':
+                py.test.skip('detected a %r CPU' % (processor,))
+
+        return super(Directory, self).run()



More information about the Pypy-commit mailing list