Lines Matching refs:skipUnless
23 requires_32b = unittest.skipUnless(sys.maxsize < 2**32,
36 requires_sched = unittest.skipUnless(_supports_sched(), 'requires POSIX scheduler API')
70 @unittest.skipUnless(hasattr(posix, 'getresuid'),
78 @unittest.skipUnless(hasattr(posix, 'getresgid'),
86 @unittest.skipUnless(hasattr(posix, 'setresuid'),
94 @unittest.skipUnless(hasattr(posix, 'setresuid'),
103 @unittest.skipUnless(hasattr(posix, 'setresgid'),
111 @unittest.skipUnless(hasattr(posix, 'setresgid'),
120 @unittest.skipUnless(hasattr(posix, 'initgroups'),
145 @unittest.skipUnless(hasattr(posix, 'statvfs'),
150 @unittest.skipUnless(hasattr(posix, 'fstatvfs'),
160 @unittest.skipUnless(hasattr(posix, 'ftruncate'),
172 @unittest.skipUnless(hasattr(posix, 'truncate'), "test needs posix.truncate()")
179 …@unittest.skipUnless(getattr(os, 'execve', None) in os.supports_fd, "test needs execve() to suppor…
180 @unittest.skipUnless(hasattr(os, 'fork'), "test needs os.fork()")
181 @unittest.skipUnless(hasattr(os, 'waitpid'), "test needs os.waitpid()")
195 @unittest.skipUnless(hasattr(posix, 'waitid'), "test needs posix.waitid()")
196 @unittest.skipUnless(hasattr(os, 'fork'), "test needs os.fork()")
206 @unittest.skipUnless(hasattr(os, 'fork'), "test needs os.fork()")
267 @unittest.skipUnless(hasattr(posix, 'lockf'), "test needs posix.lockf()")
279 @unittest.skipUnless(hasattr(posix, 'pread'), "test needs posix.pread()")
291 @unittest.skipUnless(hasattr(posix, 'preadv'), "test needs posix.preadv()")
302 @unittest.skipUnless(hasattr(posix, 'preadv'), "test needs posix.preadv()")
303 @unittest.skipUnless(hasattr(posix, 'RWF_HIPRI'), "test needs posix.RWF_HIPRI")
314 @unittest.skipUnless(hasattr(posix, 'preadv'), "test needs posix.preadv()")
327 @unittest.skipUnless(hasattr(posix, 'pwrite'), "test needs posix.pwrite()")
338 @unittest.skipUnless(hasattr(posix, 'pwritev'), "test needs posix.pwritev()")
352 @unittest.skipUnless(hasattr(posix, 'pwritev'), "test needs posix.pwritev()")
353 @unittest.skipUnless(hasattr(posix, 'os.RWF_SYNC'), "test needs os.RWF_SYNC")
367 @unittest.skipUnless(hasattr(posix, 'pwritev'), "test needs posix.pwritev()")
378 @unittest.skipUnless(hasattr(posix, 'posix_fallocate'),
398 @unittest.skipUnless(hasattr(posix, 'posix_fallocate'),
407 @unittest.skipUnless(hasattr(posix, 'posix_fadvise'),
416 @unittest.skipUnless(hasattr(posix, 'posix_fadvise'),
425 @unittest.skipUnless(os.utime in os.supports_fd, "test needs fd support in os.utime")
446 …@unittest.skipUnless(os.utime in os.supports_follow_symlinks, "test needs follow_symlinks support …
457 @unittest.skipUnless(hasattr(posix, 'writev'), "test needs posix.writev()")
479 @unittest.skipUnless(hasattr(posix, 'writev'), "test needs posix.writev()")
490 @unittest.skipUnless(hasattr(posix, 'readv'), "test needs posix.readv()")
512 @unittest.skipUnless(hasattr(posix, 'readv'), "test needs posix.readv()")
525 @unittest.skipUnless(hasattr(posix, 'dup'),
536 @unittest.skipUnless(hasattr(posix, 'confstr'),
542 @unittest.skipUnless(hasattr(posix, 'dup2'),
553 @unittest.skipUnless(hasattr(os, 'O_CLOEXEC'), "needs os.O_CLOEXEC")
560 @unittest.skipUnless(hasattr(posix, 'O_EXLOCK'),
576 @unittest.skipUnless(hasattr(posix, 'O_SHLOCK'),
593 @unittest.skipUnless(hasattr(posix, 'fstat'),
607 @unittest.skipUnless(hasattr(posix, 'stat'),
626 @unittest.skipUnless(hasattr(posix, 'mkfifo'), "don't have mkfifo()")
635 @unittest.skipUnless(hasattr(posix, 'mknod') and hasattr(stat, 'S_IFIFO'),
659 @unittest.skipUnless(hasattr(posix, 'stat'), 'test needs posix.stat()')
660 @unittest.skipUnless(hasattr(posix, 'makedev'), 'test needs posix.makedev()')
753 @unittest.skipUnless(hasattr(posix, 'chown'), "test needs os.chown()")
764 @unittest.skipUnless(hasattr(posix, 'fchown'), "test needs os.fchown()")
777 @unittest.skipUnless(hasattr(posix, 'lchown'), "test needs os.lchown()")
785 @unittest.skipUnless(hasattr(posix, 'chdir'), 'test needs posix.chdir()')
811 @unittest.skipUnless(posix.listdir in os.supports_fd,
826 @unittest.skipUnless(hasattr(posix, 'access'), 'test needs posix.access()')
830 @unittest.skipUnless(hasattr(posix, 'umask'), 'test needs posix.umask()')
836 @unittest.skipUnless(hasattr(posix, 'strerror'),
841 @unittest.skipUnless(hasattr(posix, 'pipe'), 'test needs posix.pipe()')
847 @unittest.skipUnless(hasattr(os, 'pipe2'), "test needs os.pipe2()")
876 @unittest.skipUnless(hasattr(os, 'pipe2'), "test needs os.pipe2()")
884 @unittest.skipUnless(hasattr(posix, 'utime'), 'test needs posix.utime()')
918 @unittest.skipUnless(hasattr(posix, 'chflags'), 'test needs os.chflags()')
922 @unittest.skipUnless(hasattr(posix, 'lchflags'), 'test needs os.lchflags()')
927 @unittest.skipUnless(hasattr(posix, 'lchflags'), 'test needs os.lchflags()')
969 @unittest.skipUnless(hasattr(os, "putenv"), "requires os.putenv()")
984 @unittest.skipUnless(hasattr(posix, 'getcwd'), 'test needs posix.getcwd()')
1020 @unittest.skipUnless(hasattr(posix, 'getgrouplist'), "test needs posix.getgrouplist()")
1021 @unittest.skipUnless(hasattr(pwd, 'getpwuid'), "test needs pwd.getpwuid()")
1022 @unittest.skipUnless(hasattr(os, 'getuid'), "test needs os.getuid()")
1029 @unittest.skipUnless(hasattr(os, 'getegid'), "test needs os.getegid()")
1058 … @unittest.skipUnless(os.access in os.supports_dir_fd, "test needs dir_fd support for os.access()")
1066 @unittest.skipUnless(os.chmod in os.supports_dir_fd, "test needs dir_fd support in os.chmod()")
1079 @unittest.skipUnless(os.chown in os.supports_dir_fd, "test needs dir_fd support in os.chown()")
1090 @unittest.skipUnless(os.stat in os.supports_dir_fd, "test needs dir_fd support in os.stat()")
1112 @unittest.skipUnless(os.utime in os.supports_dir_fd, "test needs dir_fd support in os.utime()")
1142 @unittest.skipUnless(os.link in os.supports_dir_fd, "test needs dir_fd support in os.link()")
1157 @unittest.skipUnless(os.mkdir in os.supports_dir_fd, "test needs dir_fd support in os.mkdir()")
1167 @unittest.skipUnless((os.mknod in os.supports_dir_fd) and hasattr(stat, 'S_IFIFO'),
1186 @unittest.skipUnless(os.open in os.supports_dir_fd, "test needs dir_fd support in os.open()")
1200 …@unittest.skipUnless(os.readlink in os.supports_dir_fd, "test needs dir_fd support in os.readlink(…
1211 … @unittest.skipUnless(os.rename in os.supports_dir_fd, "test needs dir_fd support in os.rename()")
1226 …@unittest.skipUnless(os.symlink in os.supports_dir_fd, "test needs dir_fd support in os.symlink()")
1236 … @unittest.skipUnless(os.unlink in os.supports_dir_fd, "test needs dir_fd support in os.unlink()")
1251 … @unittest.skipUnless(os.mkfifo in os.supports_dir_fd, "test needs dir_fd support in os.mkfifo()")
1265 requires_sched_h = unittest.skipUnless(hasattr(posix, 'sched_yield'),
1267 requires_sched_affinity = unittest.skipUnless(hasattr(posix, 'sched_setaffinity'),
1276 @unittest.skipUnless(hasattr(posix, 'sched_get_priority_max'),
1332 @unittest.skipUnless(hasattr(posix, "sched_rr_get_interval"), "no function")
1378 @unittest.skipUnless(hasattr(os, 'SEEK_HOLE'),
1477 @unittest.skipUnless(hasattr(posix, 'initgroups'),
1487 @unittest.skipUnless(hasattr(posix, 'setgroups'),