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

pypy/module/posix/test/test_posix2.py::AppTestPosix::()::test_forkpty

self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x000000014943c100>

    def test_forkpty(self):
                import sys
                if 'freebsd' in sys.platform:
                    skip("hangs indifinitly on FreeBSD (also on CPython).")
                os = self.posix
                childpid, master_fd = os.forkpty()
                assert isinstance(childpid, int)
                assert isinstance(master_fd, int)
                if childpid == 0:
                    data = os.read(0, 100)
                    if data.startswith(b'abc'):
                        os._exit(42)
                    else:
                        os._exit(43)
>               os.write(master_fd, b'abc\n')
E               (application-level) OSError: [Errno 5] Input/output error

[/Users/matti/build-worker-arm64/own-macos-arm64/build/pypy/module/posix/test/test_posix2.py:476]:15: OSError
builder: own-macos-arm64 build #1315+
test: pypy/module/posix/test/test_posix2.py::AppTestPosix::()::test_forkpty