Exemple #1
0
 def collect(self):
     cpu = detect_cpu.autodetect()
     if cpu != 'i386':
         py.test.skip("x86 directory skipped: cpu is %r" % (cpu,))
     return super(Directory, self).collect()
Exemple #2
0
import py, os
from pypy.jit.backend import detect_cpu

cpu = detect_cpu.autodetect()
def pytest_runtest_setup(item):
    if cpu not in ('x86', 'x86_64'):
        py.test.skip("x86/x86_64 tests skipped: cpu is %r" % (cpu,))
    if cpu == 'x86_64':
        if os.name == "nt":
            py.test.skip("Windows cannot allocate non-reserved memory")
        from pypy.rpython.lltypesystem import ll2ctypes
        ll2ctypes.do_allocation_in_far_regions()
Exemple #3
0
 def collect(self):
     cpu = detect_cpu.autodetect()
     if cpu != 'i386':
         py.test.skip("x86 directory skipped: cpu is %r" % (cpu, ))
     return super(Directory, self).collect()