• Home
  • Raw
  • Download

Lines Matching refs:hasattr

29     if not hasattr(posix, 'sched_getscheduler'):
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()")
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'),
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'),
581 if hasattr(posix, "O_SHLOCK"):
588 @unittest.skipUnless(hasattr(posix, 'O_SHLOCK'),
598 if hasattr(posix, "O_EXLOCK"):
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()')
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()')
899 self.assertTrue(hasattr(st, 'st_flags'))
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()')
934 self.assertTrue(hasattr(testfn_st, 'st_flags'))
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()")
1169 @unittest.skipUnless((os.mknod in os.supports_dir_fd) and hasattr(stat, 'S_IFIFO'),
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")
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")
1488 if not hasattr(posix, 'getgroups'):
1495 if hasattr(posix, 'setgroups'):
1497 elif hasattr(posix, 'initgroups'):
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")
1930 self.assertTrue(hasattr(os, "pwritev"), "os.pwritev is not available")
1931 self.assertTrue(hasattr(os, "preadv"), "os.readv is not available")
1934 self.assertFalse(hasattr(os, "pwritev"), "os.pwritev is available")
1935 self.assertFalse(hasattr(os, "preadv"), "os.readv is available")