pypy/module/posix/test/apptest_posix.py::test_all_pathconf_defined
def test_all_pathconf_defined():
import sys
import posix
try:
fd = sys.stdin.fileno()
except ValueError:
# translated test run with a fake sys.stdin with no fileno
fd = 1
for name in posix.pathconf_names:
> posix.fpathconf(fd, name) # does not crash
E (application-level) OSError: [Errno 22] Invalid argument
module/posix/test/apptest_posix.py:66: OSError
builder: own-macos-x86-64 build #1208
test: pypy/module/posix/test/apptest_posix/py/test_all_pathconf_defined