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

pypy/module/posix/test/test_scandir.py::AppTestScandir::()::test_fdopendir

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

    def test_fdopendir(self):
            posix = self.posix
            import stat
            if 'HAVE_FDOPENDIR' in posix._have_functions:
                raises(OSError, posix.scandir, 1234)
                # do like shutil._rmtree_safe_fd
                topfd = posix.open(self.dir2, posix.O_RDONLY)
                try:
                    with posix.scandir(topfd) as scandir_it:
                        entries = list(scandir_it)
                    assert len(entries) > 0
                    entry = entries[0]
>                   stat_val = entry.stat(follow_symlinks=False)
E                   (application-level) FileNotFoundError: [Errno 2] No such file or directory: 'ubdir2'

[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/module/posix/test/test_scandir.py:173]:13: FileNotFoundError
builder: own-macos-x86-64 build #1206
test: pypy/module/posix/test/test_scandir/py/AppTestScandir/()/test_fdopendir