pypy/module/posix/test/test_posix2.py::AppTestPosix::()::test_os_wait
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x0000000139700a30>
def test_os_wait(self):
os = self.posix
exit_status = 0x33
if not hasattr(os, "fork"):
skip("Need fork() to test wait()")
if hasattr(os, "waitpid") and hasattr(os, "WNOHANG"):
try:
while os.waitpid(-1, os.WNOHANG)[0]:
pass
except OSError: # until we get "No child processes", hopefully
pass
child = os.fork()
if child == 0: # in child
os._exit(exit_status)
else:
pid, status = os.wait()
assert child == pid
> assert os.WIFEXITED(status)
E (application-level) AssertionError: assert <built-in function WIFEXITED>(10)
E + where <built-in function WIFEXITED> = <built-in function WIFEXITED>
E + where <built-in function WIFEXITED> = <module 'posix' (built-in)>.WIFEXITED
[/Users/matti/build-worker-arm64/own-macos-arm64/build/pypy/module/posix/test/test_posix2.py:741]:19: AssertionError
builder: own-macos-arm64 build #1317+
test: pypy/module/posix/test/test_posix2.py::AppTestPosix::()::test_os_wait