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-83\\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-83\\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 = r"""
    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 'started\r\n' == 'started\n'
E             - started
E             ?        -
E             + started

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