Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

test_pypy_remote_debug:test_disable_remote_debug

tmpdir = local('D:\\SystemTemp\\pytest-of-matti\\pytest-74\\test_disable_remote_debug0')

    def wrapper(tmpdir):
        try:
>           return func(tmpdir)

..\build\extra_tests\test_pypy_remote_debug.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

tmpdir = local('D:\\SystemTemp\\pytest-of-matti\\pytest-74\\test_disable_remote_debug0')

    @skip_on_oserror
    def test_disable_remote_debug(tmpdir):
        import __pypy__
        code = """
    import sys, time
    sys.stdout.write("started\\n")
    sys.stdout.flush()
    for i in range(10):
        time.sleep(0.1)
    sys.stdout.write("done\\n")
    """
        debug_code = rb"""
    import sys, os
    sys.stdout.write('hello from %s\n' % os.getpid())
    sys.stdout.flush()
    """
        debug_script = tmpdir.join('debug.py')
        debug_script.write(debug_code)
        for func in (_pypy_remote_debug.start_debugger, __pypy__.remote_exec):
            # disable with -X option
            out = subprocess.Popen([sys.executable, '-X', 'disable-remote-debug', '-c',
                 code], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
            pid = out.pid
            # wait until the child interpreter is fully started, otherwise
            # libpypy-c.so might not be in its /proc/<pid>/maps yet
>           assert out.stdout.readline() == b'started\n'
E           AssertionError: assert b'started\r\n' == b'started\n'
E             At index 7 diff: b'\r' != b'\n'
E             Use -v to get the full diff

..\build\extra_tests\test_pypy_remote_debug.py:188: AssertionError
builder: pypy-c-jit-win-x86-64 build #2478+
test: test_pypy_remote_debug:test_disable_remote_debug