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()
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()
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()