def pytest_runtest_setup(item): from rpython.rtyper.lltypesystem import ll2ctypes try: ll2ctypes.do_allocation_in_far_regions() except Exception: # This doesn't work so well when platform=="emscripten". # No harm, no foul. pass
def pytest_runtest_setup(item): if not cpu.startswith('x86'): 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 rpython.rtyper.lltypesystem import ll2ctypes ll2ctypes.do_allocation_in_far_regions()
def pytest_runtest_setup(item): if not cpu.startswith("x86"): 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 rpython.rtyper.lltypesystem import ll2ctypes ll2ctypes.do_allocation_in_far_regions()
def pytest_runtest_setup(item): from rpython.translator import platform if platform.platform.name != "emscripten": py.test.skip("test requires emscripten platform") from rpython.rtyper.lltypesystem import ll2ctypes try: ll2ctypes.do_allocation_in_far_regions() except Exception: # This doesn't work so well when platform=="emscripten". # No harm, no foul. pass