pypy/module/posix/test/test_posix2.py::AppTestPosix::()::test_popen_child_fds
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00000001114ac608>
def test_popen_child_fds(self):
os = self.posix
with open('/'.join([self.pdir, 'file1']), 'r') as fd:
with self.posix.popen('%s -c "import os; print os.read(%d, 10)" 2>&1' % (self.python, fd.fileno())) as stream:
res = stream.read()
if self.plat == 'win32':
assert '\nOSError: [Errno 9]' in res
else:
> assert res == 'test1\n'
E (application-level) AssertionError: assert '' == 'test1\n'
[/Users/matti/build-worker-arm64/own-macos-arm64/build/pypy/module/posix/test/test_posix2.py:509]:9: AssertionError
builder: own-macos-arm64 build #1261+
test: pypy/module/posix/test/test_posix2.py::AppTestPosix::()::test_popen_child_fds