rlib/test/test_rposix.py::test_fdlistdir
tmpdir = local('/private/var/folders/ss/yttmxf7j3k584mnld5ldxg100000gn/T/pytest-of-runner/pytest-5/test_fdlistdir0')
@rposix_requires('fdlistdir')
def test_fdlistdir(tmpdir):
tmpdir.join('file').write('text')
dirfd = os.open(str(tmpdir), os.O_RDONLY)
result = rposix.fdlistdir(dirfd)
# Note: fdlistdir() always closes dirfd
> assert result == ['file']
E assert ['ile'] == ['file']
E At index 0 diff: 'ile' != 'file'
E Use -v to get the full diff
rlib/test/test_rposix.py:583: AssertionError
builder: rpython-macos-x86-64 build #627*
test: rlib/test/test_rposix.py::test_fdlistdir