• Home
  • Raw
  • Download

Lines Matching refs:hasattr

56     @unittest.skipUnless(hasattr(posix, 'getresuid'),
64 @unittest.skipUnless(hasattr(posix, 'getresgid'),
72 @unittest.skipUnless(hasattr(posix, 'setresuid'),
80 @unittest.skipUnless(hasattr(posix, 'setresuid'),
89 @unittest.skipUnless(hasattr(posix, 'setresgid'),
97 @unittest.skipUnless(hasattr(posix, 'setresgid'),
106 @unittest.skipUnless(hasattr(posix, 'initgroups'),
131 @unittest.skipUnless(hasattr(posix, 'statvfs'),
136 @unittest.skipUnless(hasattr(posix, 'fstatvfs'),
145 @unittest.skipUnless(hasattr(posix, 'ftruncate'),
157 @unittest.skipUnless(hasattr(posix, 'dup'),
168 @unittest.skipUnless(hasattr(posix, 'confstr'),
174 @unittest.skipUnless(hasattr(posix, 'dup2'),
190 @unittest.skipUnless(hasattr(posix, 'fdopen'),
197 @unittest.skipUnless(hasattr(posix, 'fdopen'),
210 @unittest.skipUnless(hasattr(posix, 'fdopen') and
218 @unittest.skipUnless(hasattr(posix, 'O_EXLOCK'),
227 if hasattr(posix, "O_SHLOCK"):
234 @unittest.skipUnless(hasattr(posix, 'O_SHLOCK'),
244 if hasattr(posix, "O_EXLOCK"):
251 @unittest.skipUnless(hasattr(posix, 'fstat'),
260 @unittest.skipUnless(hasattr(posix, 'stat'),
265 @unittest.skipUnless(hasattr(posix, 'stat'), 'test needs posix.stat()')
266 @unittest.skipUnless(hasattr(posix, 'makedev'), 'test needs posix.makedev()')
362 @unittest.skipUnless(hasattr(posix, 'chown'), "test needs os.chown()")
373 @unittest.skipUnless(hasattr(posix, 'fchown'), "test needs os.fchown()")
386 @unittest.skipUnless(hasattr(posix, 'lchown'), "test needs os.lchown()")
394 @unittest.skipUnless(hasattr(posix, 'chdir'), 'test needs posix.chdir()')
399 @unittest.skipUnless(hasattr(posix, 'lsdir'), 'test needs posix.lsdir()')
403 @unittest.skipUnless(hasattr(posix, 'access'), 'test needs posix.access()')
407 @unittest.skipUnless(hasattr(posix, 'umask'), 'test needs posix.umask()')
413 @unittest.skipUnless(hasattr(posix, 'strerror'),
418 @unittest.skipUnless(hasattr(posix, 'pipe'), 'test needs posix.pipe()')
424 @unittest.skipUnless(hasattr(posix, 'tempnam'),
433 @unittest.skipUnless(hasattr(posix, 'tmpfile'),
441 @unittest.skipUnless(hasattr(posix, 'utime'), 'test needs posix.utime()')
453 self.assertTrue(hasattr(st, 'st_flags'))
474 @unittest.skipUnless(hasattr(posix, 'chflags'), 'test needs os.chflags()')
478 @unittest.skipUnless(hasattr(posix, 'lchflags'), 'test needs os.lchflags()')
482 @unittest.skipUnless(hasattr(posix, 'lchflags'), 'test needs os.lchflags()')
486 self.assertTrue(hasattr(testfn_st, 'st_flags'))
512 @unittest.skipUnless(hasattr(os, "putenv"), "requires os.putenv()")
521 @unittest.skipUnless(hasattr(posix, 'getcwd'),
570 @unittest.skipUnless(hasattr(os, 'getegid'), "test needs os.getegid()")
641 if not hasattr(posix, 'getgroups'):
648 if hasattr(posix, 'setgroups'):
650 elif hasattr(posix, 'initgroups'):
654 @unittest.skipUnless(hasattr(posix, 'initgroups'),
664 @unittest.skipUnless(hasattr(posix, 'setgroups'),