Lines Matching refs:skipUnless
25 requires_32b = unittest.skipUnless(sys.maxsize < 2**32,
38 requires_sched = unittest.skipUnless(_supports_sched(), 'requires POSIX scheduler API')
73 @unittest.skipUnless(hasattr(posix, 'getresuid'),
81 @unittest.skipUnless(hasattr(posix, 'getresgid'),
89 @unittest.skipUnless(hasattr(posix, 'setresuid'),
97 @unittest.skipUnless(hasattr(posix, 'setresuid'),
106 @unittest.skipUnless(hasattr(posix, 'setresgid'),
114 @unittest.skipUnless(hasattr(posix, 'setresgid'),
123 @unittest.skipUnless(hasattr(posix, 'initgroups'),
148 @unittest.skipUnless(hasattr(posix, 'statvfs'),
153 @unittest.skipUnless(hasattr(posix, 'fstatvfs'),
163 @unittest.skipUnless(hasattr(posix, 'ftruncate'),
175 @unittest.skipUnless(hasattr(posix, 'truncate'), "test needs posix.truncate()")
182 …@unittest.skipUnless(getattr(os, 'execve', None) in os.supports_fd, "test needs execve() to suppor…
183 @unittest.skipUnless(hasattr(os, 'fork'), "test needs os.fork()")
197 @unittest.skipUnless(hasattr(posix, 'waitid'), "test needs posix.waitid()")
198 @unittest.skipUnless(hasattr(os, 'fork'), "test needs os.fork()")
208 @unittest.skipUnless(hasattr(os, 'fork'), "test needs os.fork()")
269 @unittest.skipUnless(hasattr(posix, 'lockf'), "test needs posix.lockf()")
281 @unittest.skipUnless(hasattr(posix, 'pread'), "test needs posix.pread()")
293 @unittest.skipUnless(hasattr(posix, 'preadv'), "test needs posix.preadv()")
304 @unittest.skipUnless(hasattr(posix, 'preadv'), "test needs posix.preadv()")
305 @unittest.skipUnless(hasattr(posix, 'RWF_HIPRI'), "test needs posix.RWF_HIPRI")
326 @unittest.skipUnless(hasattr(posix, 'preadv'), "test needs posix.preadv()")
339 @unittest.skipUnless(hasattr(posix, 'pwrite'), "test needs posix.pwrite()")
350 @unittest.skipUnless(hasattr(posix, 'pwritev'), "test needs posix.pwritev()")
364 @unittest.skipUnless(hasattr(posix, 'pwritev'), "test needs posix.pwritev()")
365 @unittest.skipUnless(hasattr(posix, 'os.RWF_SYNC'), "test needs os.RWF_SYNC")
379 @unittest.skipUnless(hasattr(posix, 'pwritev'), "test needs posix.pwritev()")
390 @unittest.skipUnless(hasattr(posix, 'posix_fallocate'),
410 @unittest.skipUnless(hasattr(posix, 'posix_fallocate'),
419 @unittest.skipUnless(hasattr(posix, 'posix_fadvise'),
428 @unittest.skipUnless(hasattr(posix, 'posix_fadvise'),
437 @unittest.skipUnless(os.utime in os.supports_fd, "test needs fd support in os.utime")
458 …@unittest.skipUnless(os.utime in os.supports_follow_symlinks, "test needs follow_symlinks support …
469 @unittest.skipUnless(hasattr(posix, 'writev'), "test needs posix.writev()")
491 @unittest.skipUnless(hasattr(posix, 'writev'), "test needs posix.writev()")
502 @unittest.skipUnless(hasattr(posix, 'readv'), "test needs posix.readv()")
524 @unittest.skipUnless(hasattr(posix, 'readv'), "test needs posix.readv()")
537 @unittest.skipUnless(hasattr(posix, 'dup'),
548 @unittest.skipUnless(hasattr(posix, 'confstr'),
554 @unittest.skipUnless(hasattr(posix, 'dup2'),
565 @unittest.skipUnless(hasattr(os, 'O_CLOEXEC'), "needs os.O_CLOEXEC")
572 @unittest.skipUnless(hasattr(posix, 'O_EXLOCK'),
588 @unittest.skipUnless(hasattr(posix, 'O_SHLOCK'),
605 @unittest.skipUnless(hasattr(posix, 'fstat'),
636 @unittest.skipUnless(hasattr(posix, 'mkfifo'), "don't have mkfifo()")
645 @unittest.skipUnless(hasattr(posix, 'mknod') and hasattr(stat, 'S_IFIFO'),
669 @unittest.skipUnless(hasattr(posix, 'makedev'), 'test needs posix.makedev()')
757 @unittest.skipUnless(hasattr(posix, 'chown'), "test needs os.chown()")
767 @unittest.skipUnless(hasattr(posix, 'fchown'), "test needs os.fchown()")
780 @unittest.skipUnless(hasattr(posix, 'lchown'), "test needs os.lchown()")
788 @unittest.skipUnless(hasattr(posix, 'chdir'), 'test needs posix.chdir()')
814 @unittest.skipUnless(posix.listdir in os.supports_fd,
829 @unittest.skipUnless(hasattr(posix, 'access'), 'test needs posix.access()')
833 @unittest.skipUnless(hasattr(posix, 'umask'), 'test needs posix.umask()')
839 @unittest.skipUnless(hasattr(posix, 'strerror'),
844 @unittest.skipUnless(hasattr(posix, 'pipe'), 'test needs posix.pipe()')
850 @unittest.skipUnless(hasattr(os, 'pipe2'), "test needs os.pipe2()")
879 @unittest.skipUnless(hasattr(os, 'pipe2'), "test needs os.pipe2()")
887 @unittest.skipUnless(hasattr(posix, 'utime'), 'test needs posix.utime()')
921 @unittest.skipUnless(hasattr(posix, 'chflags'), 'test needs os.chflags()')
925 @unittest.skipUnless(hasattr(posix, 'lchflags'), 'test needs os.lchflags()')
930 @unittest.skipUnless(hasattr(posix, 'lchflags'), 'test needs os.lchflags()')
986 @unittest.skipUnless(hasattr(posix, 'getcwd'), 'test needs posix.getcwd()')
1022 @unittest.skipUnless(hasattr(posix, 'getgrouplist'), "test needs posix.getgrouplist()")
1023 @unittest.skipUnless(hasattr(pwd, 'getpwuid'), "test needs pwd.getpwuid()")
1024 @unittest.skipUnless(hasattr(os, 'getuid'), "test needs os.getuid()")
1031 @unittest.skipUnless(hasattr(os, 'getegid'), "test needs os.getegid()")
1060 … @unittest.skipUnless(os.access in os.supports_dir_fd, "test needs dir_fd support for os.access()")
1068 @unittest.skipUnless(os.chmod in os.supports_dir_fd, "test needs dir_fd support in os.chmod()")
1081 @unittest.skipUnless(os.chown in os.supports_dir_fd, "test needs dir_fd support in os.chown()")
1092 @unittest.skipUnless(os.stat in os.supports_dir_fd, "test needs dir_fd support in os.stat()")
1114 @unittest.skipUnless(os.utime in os.supports_dir_fd, "test needs dir_fd support in os.utime()")
1144 @unittest.skipUnless(os.link in os.supports_dir_fd, "test needs dir_fd support in os.link()")
1159 @unittest.skipUnless(os.mkdir in os.supports_dir_fd, "test needs dir_fd support in os.mkdir()")
1169 @unittest.skipUnless((os.mknod in os.supports_dir_fd) and hasattr(stat, 'S_IFIFO'),
1188 @unittest.skipUnless(os.open in os.supports_dir_fd, "test needs dir_fd support in os.open()")
1202 …@unittest.skipUnless(os.readlink in os.supports_dir_fd, "test needs dir_fd support in os.readlink(…
1213 … @unittest.skipUnless(os.rename in os.supports_dir_fd, "test needs dir_fd support in os.rename()")
1228 …@unittest.skipUnless(hasattr(signal, 'SIGCHLD'), 'CLD_XXXX be placed in si_code for a SIGCHLD sign…
1229 @unittest.skipUnless(hasattr(os, 'waitid_result'), "test needs os.waitid_result")
1238 …@unittest.skipUnless(os.symlink in os.supports_dir_fd, "test needs dir_fd support in os.symlink()")
1248 … @unittest.skipUnless(os.unlink in os.supports_dir_fd, "test needs dir_fd support in os.unlink()")
1263 … @unittest.skipUnless(os.mkfifo in os.supports_dir_fd, "test needs dir_fd support in os.mkfifo()")
1277 requires_sched_h = unittest.skipUnless(hasattr(posix, 'sched_yield'),
1279 requires_sched_affinity = unittest.skipUnless(hasattr(posix, 'sched_setaffinity'),
1288 @unittest.skipUnless(hasattr(posix, 'sched_get_priority_max'),
1344 @unittest.skipUnless(hasattr(posix, "sched_rr_get_interval"), "no function")
1391 @unittest.skipUnless(hasattr(os, 'SEEK_HOLE'),
1472 @unittest.skipUnless(hasattr(os, "pidfd_open"), "pidfd_open unavailable")
1501 @unittest.skipUnless(hasattr(posix, 'initgroups'),
1511 @unittest.skipUnless(hasattr(posix, 'setgroups'),
1633 @unittest.skipUnless(hasattr(signal, 'pthread_sigmask'),
1694 @unittest.skipUnless(hasattr(signal, 'pthread_sigmask'),
1866 @unittest.skipUnless(hasattr(os, 'posix_spawn'), "test needs os.posix_spawn")
1871 @unittest.skipUnless(hasattr(os, 'posix_spawnp'), "test needs os.posix_spawnp")
1908 @unittest.skipUnless(sys.platform == "darwin", "test weak linking on macOS")