Пример #1
0
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
Пример #2
0
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()
Пример #3
0
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()
Пример #4
0
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
Пример #5
0
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