lib-python/3/test/test_posix.py::unmodified
== PyPy 3.12.13 (22398ecb2727, Aug 16 2026, 05:40:34) [PyPy 8.0.0-alpha0 with MSC v.1941 64 bit (AMD64)]
== Windows-10-10.0.19045-SP0 little-endian
== Python build: release with_assert
== cwd: D:\SystemTemp\pytest\test_python_worker_6108æ
== CPU count: 2
== encodings: locale=ascii FS=utf-8
== resources (3): curses,gui,network
Using random seed: 3556865951
0:00:00 Run 1 test sequentially in a single process
0:00:00 [1/1] test_posix
test_unshare_setns (test.test_posix.NamespacesTests.test_unshare_setns) ... skipped 'needs os.unshare()'
test_initgroups (test.test_posix.PosixGroupsTester.test_initgroups) ... skipped 'test needs posix.initgroups()'
test_setgroups (test.test_posix.PosixGroupsTester.test_setgroups) ... skipped 'test needs posix.setgroups()'
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) ... skipped 'requires os.chown()'
test_cld_xxxx_constants (test.test_posix.PosixTester.test_cld_xxxx_constants) ... skipped 'CLD_XXXX be placed in si_code for a SIGCHLD signal'
test_confstr (test.test_posix.PosixTester.test_confstr) ... skipped 'test needs posix.confstr()'
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) ... skipped 'test needs os.fchown()'
test_fexecve (test.test_posix.PosixTester.test_fexecve) ... skipped 'test needs execve() to support the fd parameter'
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) ... skipped 'test needs posix.fstatvfs()'
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) ... skipped 'requires POSIX scheduler API'
test_getcwd_long_pathnames (test.test_posix.PosixTester.test_getcwd_long_pathnames) ... ok
test_getgrouplist (test.test_posix.PosixTester.test_getgrouplist) ... skipped 'test needs posix.getgrouplist()'
test_getgroups (test.test_posix.PosixTester.test_getgroups) ... skipped 'test needs os.getegid()'
test_getresgid (test.test_posix.PosixTester.test_getresgid) ... skipped 'test needs posix.getresgid()'
test_getresuid (test.test_posix.PosixTester.test_getresuid) ... skipped 'test needs posix.getresuid()'
test_initgroups (test.test_posix.PosixTester.test_initgroups) ... skipped 'test needs os.initgroups()'
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) ... skipped 'test needs os.lchown()'
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) ... skipped 'test needs fd support for posix.listdir()'
test_lockf (test.test_posix.PosixTester.test_lockf) ... skipped 'test needs posix.lockf()'
test_makedev (test.test_posix.PosixTester.test_makedev) ... skipped 'test needs posix.makedev()'
test_mkfifo (test.test_posix.PosixTester.test_mkfifo) ... skipped "don't have mkfifo()"
test_mknod (test.test_posix.PosixTester.test_mknod) ... skipped "don't have mknod()/S_IFIFO"
test_oscloexec (test.test_posix.PosixTester.test_oscloexec) ... skipped 'needs os.O_CLOEXEC'
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) ... skipped 'test needs os.pipe2()'
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) ... skipped 'test needs posix.posix_fadvise()'
test_posix_fadvise_errno (test.test_posix.PosixTester.test_posix_fadvise_errno) ... skipped 'test needs posix.posix_fadvise()'
test_posix_fallocate (test.test_posix.PosixTester.test_posix_fallocate) ... skipped 'test needs posix.posix_fallocate()'
test_posix_fallocate_errno (test.test_posix.PosixTester.test_posix_fallocate_errno) ... skipped 'test needs posix.posix_fallocate()'
test_pread (test.test_posix.PosixTester.test_pread) ... skipped 'test needs posix.pread()'
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) ... skipped 'test needs posix.pwrite()'
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) ... skipped 'requires working os.fork()'
test_rtld_constants (test.test_posix.PosixTester.test_rtld_constants) ... skipped 'POSIX-only test'
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) ... skipped 'requires POSIX scheduler API'
test_sched_priority (test.test_posix.PosixTester.test_sched_priority) ... skipped "don't have scheduling support"
test_sched_rr_get_interval (test.test_posix.PosixTester.test_sched_rr_get_interval) ... skipped 'no function'
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) ... skipped "don't have scheduling support"
test_setresgid (test.test_posix.PosixTester.test_setresgid) ... skipped 'test needs posix.setresgid()'
test_setresgid_exception (test.test_posix.PosixTester.test_setresgid_exception) ... skipped 'test needs posix.setresgid()'
test_setresuid (test.test_posix.PosixTester.test_setresuid) ... skipped 'test needs posix.setresuid()'
test_setresuid_exception (test.test_posix.PosixTester.test_setresuid_exception) ... skipped 'test needs posix.setresuid()'
test_stat (test.test_posix.PosixTester.test_stat) ... FAIL
test_statvfs (test.test_posix.PosixTester.test_statvfs) ... skipped 'test needs posix.statvfs()'
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) ... skipped 'test needs follow_symlinks support in os.utime'
test_utime_with_fd (test.test_posix.PosixTester.test_utime_with_fd) ... skipped 'test needs fd support in os.utime'
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) ... skipped 'test needs dir_fd support for os.access()'
test_chmod_dir_fd (test.test_posix.TestPosixDirFd.test_chmod_dir_fd) ... skipped 'test needs dir_fd support in os.chmod()'
test_chown_dir_fd (test.test_posix.TestPosixDirFd.test_chown_dir_fd) ... skipped 'test needs dir_fd support in os.chown()'
test_link_dir_fd (test.test_posix.TestPosixDirFd.test_link_dir_fd) ... skipped 'test needs dir_fd support in os.link()'
test_mkdir_dir_fd (test.test_posix.TestPosixDirFd.test_mkdir_dir_fd) ... skipped 'test needs dir_fd support in os.mkdir()'
test_mkfifo_dir_fd (test.test_posix.TestPosixDirFd.test_mkfifo_dir_fd) ... skipped 'test needs dir_fd support in os.mkfifo()'
test_mknod_dir_fd (test.test_posix.TestPosixDirFd.test_mknod_dir_fd) ... skipped 'test requires both stat.S_IFIFO and dir_fd support for os.mknod()'
test_open_dir_fd (test.test_posix.TestPosixDirFd.test_open_dir_fd) ... skipped 'test needs dir_fd support in os.open()'
test_readlink_dir_fd (test.test_posix.TestPosixDirFd.test_readlink_dir_fd) ... skipped 'test needs dir_fd support in os.readlink()'
test_rename_dir_fd (test.test_posix.TestPosixDirFd.test_rename_dir_fd) ... skipped 'test needs dir_fd support in os.rename()'
test_stat_dir_fd (test.test_posix.TestPosixDirFd.test_stat_dir_fd) ... skipped 'test needs dir_fd support in os.stat()'
test_symlink_dir_fd (test.test_posix.TestPosixDirFd.test_symlink_dir_fd) ... skipped 'test needs dir_fd support in os.symlink()'
test_unlink_dir_fd (test.test_posix.TestPosixDirFd.test_unlink_dir_fd) ... skipped 'test needs dir_fd support in os.unlink()'
test_utime_dir_fd (test.test_posix.TestPosixDirFd.test_utime_dir_fd) ... skipped 'test needs dir_fd support in os.utime()'
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'
======================================================================
FAIL: test_listdir_bytes_like (test.test_posix.PosixTester.test_listdir_bytes_like)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-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_stat (test.test_posix.PosixTester.test_stat)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-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.043s
FAILED (failures=2, skipped=140)
0:00:00 [1/1/1] test_posix failed (2 failures)
== Tests result: FAILURE ==
1 test failed:
test_posix
Total duration: 363 ms
Total tests: run=167 failures=2 skipped=140
Total test files: run=1/1 failed=1
Result: FAILURE
test test_posix failed
builder: pypy-c-jit-win-x86-64 build #2497+
test: lib-python/3/test/test_posix.py::unmodified