lib-python/3/test/test_posix.py::unmodified
== PyPy 3.12.13 (e99dc7a98783, Jul 10 2026, 04:08:29) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-6.1.0-22-amd64-x86_64-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_1731974æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 3280664327
0:00:00 load avg: 1.08 Run 1 test sequentially in a single process
0:00:00 load avg: 1.08 [1/1] test_posix
test_unshare_setns (test.test_posix.NamespacesTests.test_unshare_setns) ... skipped 'needs os.setns()'
test_initgroups (test.test_posix.PosixGroupsTester.test_initgroups) ... skipped 'not enough privileges'
test_setgroups (test.test_posix.PosixGroupsTester.test_setgroups) ... skipped 'not enough privileges'
testNoArgFunctions (test.test_posix.PosixTester.testNoArgFunctions) ... ok
test_access (test.test_posix.PosixTester.test_access) ... ok
test_chdir (test.test_posix.PosixTester.test_chdir) ... ok
test_chflags (test.test_posix.PosixTester.test_chflags) ... skipped 'test needs os.chflags()'
test_chmod_dir (test.test_posix.PosixTester.test_chmod_dir) ... ok
test_chmod_dir_symlink (test.test_posix.PosixTester.test_chmod_dir_symlink) ... ok
test_chmod_file (test.test_posix.PosixTester.test_chmod_file) ... ok
test_chmod_file_symlink (test.test_posix.PosixTester.test_chmod_file_symlink) ... ok
test_chown (test.test_posix.PosixTester.test_chown) ... ok
test_cld_xxxx_constants (test.test_posix.PosixTester.test_cld_xxxx_constants) ... skipped 'test needs os.waitid_result'
test_confstr (test.test_posix.PosixTester.test_confstr) ... ok
test_dup (test.test_posix.PosixTester.test_dup) ... ok
test_dup2 (test.test_posix.PosixTester.test_dup2) ... ok
test_environ (test.test_posix.PosixTester.test_environ) ... ok
test_fchown (test.test_posix.PosixTester.test_fchown) ... ok
test_fexecve (test.test_posix.PosixTester.test_fexecve) ... ok
test_fs_holes (test.test_posix.PosixTester.test_fs_holes) ... skipped 'test needs an OS that reports file holes'
test_fstat (test.test_posix.PosixTester.test_fstat) ... ok
test_fstatvfs (test.test_posix.PosixTester.test_fstatvfs) ... ok
test_ftruncate (test.test_posix.PosixTester.test_ftruncate) ... ok
test_get_and_set_scheduler_and_param (test.test_posix.PosixTester.test_get_and_set_scheduler_and_param) ... ok
test_getcwd_long_pathnames (test.test_posix.PosixTester.test_getcwd_long_pathnames) ... ok
test_getgrouplist (test.test_posix.PosixTester.test_getgrouplist) ... ok
test_getgroups (test.test_posix.PosixTester.test_getgroups) ... ok
test_getresgid (test.test_posix.PosixTester.test_getresgid) ... ok
test_getresuid (test.test_posix.PosixTester.test_getresuid) ... ok
test_initgroups (test.test_posix.PosixTester.test_initgroups) ... ok
test_lchflags_regular_file (test.test_posix.PosixTester.test_lchflags_regular_file) ... skipped 'test needs os.lchflags()'
test_lchflags_symlink (test.test_posix.PosixTester.test_lchflags_symlink) ... skipped 'test needs os.lchflags()'
test_lchmod_dir (test.test_posix.PosixTester.test_lchmod_dir) ... skipped 'test needs os.lchmod()'
test_lchmod_dir_symlink (test.test_posix.PosixTester.test_lchmod_dir_symlink) ... skipped 'test needs os.lchmod()'
test_lchmod_file (test.test_posix.PosixTester.test_lchmod_file) ... skipped 'test needs os.lchmod()'
test_lchmod_file_symlink (test.test_posix.PosixTester.test_lchmod_file_symlink) ... skipped 'test needs os.lchmod()'
test_lchown (test.test_posix.PosixTester.test_lchown) ... ok
test_listdir (test.test_posix.PosixTester.test_listdir) ... ok
test_listdir_bytes (test.test_posix.PosixTester.test_listdir_bytes) ... ok
test_listdir_bytes_like (test.test_posix.PosixTester.test_listdir_bytes_like) ... FAIL
test_listdir_default (test.test_posix.PosixTester.test_listdir_default) ... ok
test_listdir_fd (test.test_posix.PosixTester.test_listdir_fd) ... ok
test_lockf (test.test_posix.PosixTester.test_lockf) ... ok
test_makedev (test.test_posix.PosixTester.test_makedev) ... FAIL
test_mkfifo (test.test_posix.PosixTester.test_mkfifo) ... ok
test_mknod (test.test_posix.PosixTester.test_mknod) ... ok
test_oscloexec (test.test_posix.PosixTester.test_oscloexec) ... ok
test_osexlock (test.test_posix.PosixTester.test_osexlock) ... skipped 'test needs posix.O_EXLOCK'
test_osshlock (test.test_posix.PosixTester.test_osshlock) ... skipped 'test needs posix.O_SHLOCK'
test_path_error2 (test.test_posix.PosixTester.test_path_error2)
Test functions that call path_error2(), providing two filenames in their exceptions. ... ok
test_path_with_null_byte (test.test_posix.PosixTester.test_path_with_null_byte) ... ok
test_path_with_null_character (test.test_posix.PosixTester.test_path_with_null_character) ... ok
test_pidfd_open (test.test_posix.PosixTester.test_pidfd_open) ... skipped 'pidfd_open unavailable'
test_pipe (test.test_posix.PosixTester.test_pipe) ... ok
test_pipe2 (test.test_posix.PosixTester.test_pipe2) ... ok
test_pipe2_c_limits (test.test_posix.PosixTester.test_pipe2_c_limits) ... skipped 'implementation detail specific to cpython'
test_posix_fadvise (test.test_posix.PosixTester.test_posix_fadvise) ... ok
test_posix_fadvise_errno (test.test_posix.PosixTester.test_posix_fadvise_errno) ... ok
test_posix_fallocate (test.test_posix.PosixTester.test_posix_fallocate) ... ok
test_posix_fallocate_errno (test.test_posix.PosixTester.test_posix_fallocate_errno) ... ok
test_pread (test.test_posix.PosixTester.test_pread) ... ok
test_preadv (test.test_posix.PosixTester.test_preadv) ... skipped 'test needs posix.preadv()'
test_preadv_flags (test.test_posix.PosixTester.test_preadv_flags) ... skipped 'test needs posix.preadv()'
test_preadv_overflow_32bits (test.test_posix.PosixTester.test_preadv_overflow_32bits) ... skipped 'test needs posix.preadv()'
test_putenv (test.test_posix.PosixTester.test_putenv) ... ok
test_pwrite (test.test_posix.PosixTester.test_pwrite) ... ok
test_pwritev (test.test_posix.PosixTester.test_pwritev) ... skipped 'test needs posix.pwritev()'
test_pwritev_flags (test.test_posix.PosixTester.test_pwritev_flags) ... skipped 'test needs posix.pwritev()'
test_pwritev_overflow_32bits (test.test_posix.PosixTester.test_pwritev_overflow_32bits) ... skipped 'test needs posix.pwritev()'
test_readv (test.test_posix.PosixTester.test_readv) ... skipped 'test needs posix.readv()'
test_readv_overflow_32bits (test.test_posix.PosixTester.test_readv_overflow_32bits) ... skipped 'test needs posix.readv()'
test_register_at_fork (test.test_posix.PosixTester.test_register_at_fork) ... ok
test_rtld_constants (test.test_posix.PosixTester.test_rtld_constants) ... ok
test_sched_getaffinity (test.test_posix.PosixTester.test_sched_getaffinity) ... skipped "don't have sched affinity support"
test_sched_param (test.test_posix.PosixTester.test_sched_param) ... ERROR
test_sched_priority (test.test_posix.PosixTester.test_sched_priority) ... ok
test_sched_rr_get_interval (test.test_posix.PosixTester.test_sched_rr_get_interval) ... ok
test_sched_setaffinity (test.test_posix.PosixTester.test_sched_setaffinity) ... skipped "don't have sched affinity support"
test_sched_yield (test.test_posix.PosixTester.test_sched_yield) ... ok
test_setresgid (test.test_posix.PosixTester.test_setresgid) ... ok
test_setresgid_exception (test.test_posix.PosixTester.test_setresgid_exception) ... ok
test_setresuid (test.test_posix.PosixTester.test_setresuid) ... ok
test_setresuid_exception (test.test_posix.PosixTester.test_setresuid_exception) ... ok
test_stat (test.test_posix.PosixTester.test_stat) ... FAIL
test_statvfs (test.test_posix.PosixTester.test_statvfs) ... ok
test_strerror (test.test_posix.PosixTester.test_strerror) ... ok
test_truncate (test.test_posix.PosixTester.test_truncate) ... ok
test_umask (test.test_posix.PosixTester.test_umask) ... ok
test_utime (test.test_posix.PosixTester.test_utime) ... ok
test_utime_nofollow_symlinks (test.test_posix.PosixTester.test_utime_nofollow_symlinks) ... ok
test_utime_with_fd (test.test_posix.PosixTester.test_utime_with_fd) ... ok
test_waitid (test.test_posix.PosixTester.test_waitid) ... skipped 'test needs posix.waitid()'
test_writev (test.test_posix.PosixTester.test_writev) ... skipped 'test needs posix.writev()'
test_writev_overflow_32bits (test.test_posix.PosixTester.test_writev_overflow_32bits) ... skipped 'test needs posix.writev()'
test_access_dir_fd (test.test_posix.TestPosixDirFd.test_access_dir_fd) ... ok
test_chmod_dir_fd (test.test_posix.TestPosixDirFd.test_chmod_dir_fd) ... ok
test_chown_dir_fd (test.test_posix.TestPosixDirFd.test_chown_dir_fd) ... ok
test_link_dir_fd (test.test_posix.TestPosixDirFd.test_link_dir_fd) ... ok
test_mkdir_dir_fd (test.test_posix.TestPosixDirFd.test_mkdir_dir_fd) ... ok
test_mkfifo_dir_fd (test.test_posix.TestPosixDirFd.test_mkfifo_dir_fd) ... ok
test_mknod_dir_fd (test.test_posix.TestPosixDirFd.test_mknod_dir_fd) ... ok
test_open_dir_fd (test.test_posix.TestPosixDirFd.test_open_dir_fd) ... ok
test_readlink_dir_fd (test.test_posix.TestPosixDirFd.test_readlink_dir_fd) ... ok
test_rename_dir_fd (test.test_posix.TestPosixDirFd.test_rename_dir_fd) ... ok
test_stat_dir_fd (test.test_posix.TestPosixDirFd.test_stat_dir_fd) ... ok
test_symlink_dir_fd (test.test_posix.TestPosixDirFd.test_symlink_dir_fd) ... ok
test_unlink_dir_fd (test.test_posix.TestPosixDirFd.test_unlink_dir_fd) ... ok
test_utime_dir_fd (test.test_posix.TestPosixDirFd.test_utime_dir_fd) ... ok
test_bad_file_actions (test.test_posix.TestPosixSpawn.test_bad_file_actions) ... skipped 'test needs os.posix_spawn'
test_close_file (test.test_posix.TestPosixSpawn.test_close_file) ... skipped 'test needs os.posix_spawn'
test_dup2 (test.test_posix.TestPosixSpawn.test_dup2) ... skipped 'test needs os.posix_spawn'
test_empty_file_actions (test.test_posix.TestPosixSpawn.test_empty_file_actions) ... skipped 'test needs os.posix_spawn'
test_multiple_file_actions (test.test_posix.TestPosixSpawn.test_multiple_file_actions) ... skipped 'test needs os.posix_spawn'
test_no_such_executable (test.test_posix.TestPosixSpawn.test_no_such_executable) ... skipped 'test needs os.posix_spawn'
test_none_file_actions (test.test_posix.TestPosixSpawn.test_none_file_actions) ... skipped 'test needs os.posix_spawn'
test_open_file (test.test_posix.TestPosixSpawn.test_open_file) ... skipped 'test needs os.posix_spawn'
test_resetids (test.test_posix.TestPosixSpawn.test_resetids) ... skipped 'test needs os.posix_spawn'
test_resetids_explicit_default (test.test_posix.TestPosixSpawn.test_resetids_explicit_default) ... skipped 'test needs os.posix_spawn'
test_returns_pid (test.test_posix.TestPosixSpawn.test_returns_pid) ... skipped 'test needs os.posix_spawn'
test_setpgroup (test.test_posix.TestPosixSpawn.test_setpgroup) ... skipped 'test needs os.posix_spawn'
test_setpgroup_wrong_type (test.test_posix.TestPosixSpawn.test_setpgroup_wrong_type) ... skipped 'test needs os.posix_spawn'
test_setscheduler_only_param (test.test_posix.TestPosixSpawn.test_setscheduler_only_param) ... skipped 'test needs os.posix_spawn'
test_setscheduler_with_policy (test.test_posix.TestPosixSpawn.test_setscheduler_with_policy) ... skipped 'test needs os.posix_spawn'
test_setsid (test.test_posix.TestPosixSpawn.test_setsid) ... skipped 'test needs os.posix_spawn'
test_setsigdef (test.test_posix.TestPosixSpawn.test_setsigdef) ... skipped 'test needs os.posix_spawn'
test_setsigdef_wrong_type (test.test_posix.TestPosixSpawn.test_setsigdef_wrong_type) ... skipped 'test needs os.posix_spawn'
test_setsigmask (test.test_posix.TestPosixSpawn.test_setsigmask) ... skipped 'test needs os.posix_spawn'
test_setsigmask_wrong_type (test.test_posix.TestPosixSpawn.test_setsigmask_wrong_type) ... skipped 'test needs os.posix_spawn'
test_specify_environment (test.test_posix.TestPosixSpawn.test_specify_environment) ... skipped 'test needs os.posix_spawn'
test_bad_file_actions (test.test_posix.TestPosixSpawnP.test_bad_file_actions) ... skipped 'test needs os.posix_spawnp'
test_close_file (test.test_posix.TestPosixSpawnP.test_close_file) ... skipped 'test needs os.posix_spawnp'
test_dup2 (test.test_posix.TestPosixSpawnP.test_dup2) ... skipped 'test needs os.posix_spawnp'
test_empty_file_actions (test.test_posix.TestPosixSpawnP.test_empty_file_actions) ... skipped 'test needs os.posix_spawnp'
test_multiple_file_actions (test.test_posix.TestPosixSpawnP.test_multiple_file_actions) ... skipped 'test needs os.posix_spawnp'
test_no_such_executable (test.test_posix.TestPosixSpawnP.test_no_such_executable) ... skipped 'test needs os.posix_spawnp'
test_none_file_actions (test.test_posix.TestPosixSpawnP.test_none_file_actions) ... skipped 'test needs os.posix_spawnp'
test_open_file (test.test_posix.TestPosixSpawnP.test_open_file) ... skipped 'test needs os.posix_spawnp'
test_posix_spawnp (test.test_posix.TestPosixSpawnP.test_posix_spawnp) ... skipped 'test needs os.posix_spawnp'
test_resetids (test.test_posix.TestPosixSpawnP.test_resetids) ... skipped 'test needs os.posix_spawnp'
test_resetids_explicit_default (test.test_posix.TestPosixSpawnP.test_resetids_explicit_default) ... skipped 'test needs os.posix_spawnp'
test_returns_pid (test.test_posix.TestPosixSpawnP.test_returns_pid) ... skipped 'test needs os.posix_spawnp'
test_setpgroup (test.test_posix.TestPosixSpawnP.test_setpgroup) ... skipped 'test needs os.posix_spawnp'
test_setpgroup_wrong_type (test.test_posix.TestPosixSpawnP.test_setpgroup_wrong_type) ... skipped 'test needs os.posix_spawnp'
test_setscheduler_only_param (test.test_posix.TestPosixSpawnP.test_setscheduler_only_param) ... skipped 'test needs os.posix_spawnp'
test_setscheduler_with_policy (test.test_posix.TestPosixSpawnP.test_setscheduler_with_policy) ... skipped 'test needs os.posix_spawnp'
test_setsid (test.test_posix.TestPosixSpawnP.test_setsid) ... skipped 'test needs os.posix_spawnp'
test_setsigdef (test.test_posix.TestPosixSpawnP.test_setsigdef) ... skipped 'test needs os.posix_spawnp'
test_setsigdef_wrong_type (test.test_posix.TestPosixSpawnP.test_setsigdef_wrong_type) ... skipped 'test needs os.posix_spawnp'
test_setsigmask (test.test_posix.TestPosixSpawnP.test_setsigmask) ... skipped 'test needs os.posix_spawnp'
test_setsigmask_wrong_type (test.test_posix.TestPosixSpawnP.test_setsigmask_wrong_type) ... skipped 'test needs os.posix_spawnp'
test_specify_environment (test.test_posix.TestPosixSpawnP.test_specify_environment) ... skipped 'test needs os.posix_spawnp'
test_access (test.test_posix.TestPosixWeaklinking.test_access) ... skipped 'test weak linking on macOS'
test_chmod (test.test_posix.TestPosixWeaklinking.test_chmod) ... skipped 'test weak linking on macOS'
test_chown (test.test_posix.TestPosixWeaklinking.test_chown) ... skipped 'test weak linking on macOS'
test_link (test.test_posix.TestPosixWeaklinking.test_link) ... skipped 'test weak linking on macOS'
test_listdir_scandir (test.test_posix.TestPosixWeaklinking.test_listdir_scandir) ... skipped 'test weak linking on macOS'
test_mkdir (test.test_posix.TestPosixWeaklinking.test_mkdir) ... skipped 'test weak linking on macOS'
test_mkfifo (test.test_posix.TestPosixWeaklinking.test_mkfifo) ... skipped 'test weak linking on macOS'
test_mknod (test.test_posix.TestPosixWeaklinking.test_mknod) ... skipped 'test weak linking on macOS'
test_open (test.test_posix.TestPosixWeaklinking.test_open) ... skipped 'test weak linking on macOS'
test_pwritev (test.test_posix.TestPosixWeaklinking.test_pwritev) ... skipped 'test weak linking on macOS'
test_readlink (test.test_posix.TestPosixWeaklinking.test_readlink) ... skipped 'test weak linking on macOS'
test_rename_replace (test.test_posix.TestPosixWeaklinking.test_rename_replace) ... skipped 'test weak linking on macOS'
test_stat (test.test_posix.TestPosixWeaklinking.test_stat) ... skipped 'test weak linking on macOS'
test_symlink (test.test_posix.TestPosixWeaklinking.test_symlink) ... skipped 'test weak linking on macOS'
test_unlink_rmdir (test.test_posix.TestPosixWeaklinking.test_unlink_rmdir) ... skipped 'test weak linking on macOS'
test_utime (test.test_posix.TestPosixWeaklinking.test_utime) ... skipped 'test weak linking on macOS'
======================================================================
ERROR: test_sched_param (test.test_posix.PosixTester.test_sched_param)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_posix.py", line 1317, in test_sched_param
newparam = pickle.loads(pickle.dumps(param, proto))
^^^^^
TypeError: sched_param.__new__() takes 2 positional arguments but 3 were given
======================================================================
FAIL: test_listdir_bytes_like (test.test_posix.PosixTester.test_listdir_bytes_like)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_posix.py", line 864, in test_listdir_bytes_like
with self.assertRaises(TypeError):
AssertionError: TypeError not raised
======================================================================
FAIL: test_makedev (test.test_posix.PosixTester.test_makedev)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_posix.py", line 728, in test_makedev
self.assertRaises((ValueError, OverflowError), posix.makedev, x, minor)
^^^^^^^^^^^^
AssertionError: (<class 'ValueError'>, <class 'OverflowError'>) not raised by makedev
======================================================================
FAIL: test_stat (test.test_posix.PosixTester.test_stat)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_posix.py", line 646, in test_stat
self.assertRaisesRegex(TypeError,
^^^^^^^^^^^^^^^^^
AssertionError: TypeError not raised by stat
----------------------------------------------------------------------
Ran 167 tests in 0.315s
FAILED (failures=3, errors=1, skipped=88)
0:00:00 load avg: 1.08 [1/1/1] test_posix failed (1 error, 3 failures)
== Tests result: FAILURE ==
1 test failed:
test_posix
Total duration: 441 ms
Total tests: run=167 failures=3 skipped=88
Total test files: run=1/1 failed=1
Result: FAILURE
test test_posix failed
builder: pypy-c-jit-linux-x86-64 build #11860+
test: lib-python/3/test/test_posix.py::unmodified