예제 #1
0
파일: conftest.py 프로젝트: charred/pypy
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
파일: conftest.py 프로젝트: cimarieta/usp
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
파일: conftest.py 프로젝트: Darriall/pypy
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