• Home
  • Raw
  • Download

Lines Matching refs:skipUnless

80     return unittest.skipUnless(hasattr(os, name), 'requires os.%s' % name)
206 @unittest.skipUnless(INT_MAX < PY_SSIZE_T_MAX,
242 @unittest.skipUnless(sys.platform == 'win32',
292 @unittest.skipUnless(hasattr(os, 'copy_file_range'), 'test needs os.copy_file_range()')
297 @unittest.skipUnless(hasattr(os, 'copy_file_range'), 'test needs os.copy_file_range()')
331 @unittest.skipUnless(hasattr(os, 'copy_file_range'), 'test needs os.copy_file_range()')
468 @unittest.skipUnless(hasattr(os, 'statvfs'), 'test needs os.statvfs()')
512 @unittest.skipUnless(hasattr(os, 'statvfs'),
525 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
535 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
536 @unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
554 @unittest.skipUnless(sys.platform == "win32",
575 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
596 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
686 @unittest.skipUnless(os.utime in os.supports_follow_symlinks,
696 @unittest.skipUnless(os.utime in os.supports_fd,
706 @unittest.skipUnless(os.utime in os.supports_dir_fd,
855 @unittest.skipUnless(unix_shell and os.path.exists(unix_shell),
864 @unittest.skipUnless(unix_shell and os.path.exists(unix_shell),
935 @unittest.skipUnless(os.supports_bytes_environ,
1318 @unittest.skipUnless(hasattr(os, 'fwalk'), "Test needs os.fwalk()")
1403 @unittest.skipUnless(hasattr(os, 'fwalk'), "Test needs os.fwalk()")
1510 @unittest.skipUnless(hasattr(os, 'chown'), "Test needs chown")
1527 @unittest.skipUnless(hasattr(os, 'getgroups'), 'need os.getgroups')
1544 @unittest.skipUnless(root_in_posix and len(all_users) > 1,
1556 @unittest.skipUnless(not root_in_posix and len(all_users) > 1,
1651 @unittest.skipUnless(hasattr(os, 'getrandom'), 'need os.getrandom()')
1706 @unittest.skipUnless(resource, "test requires the resource module")
1815 @unittest.skipUnless(hasattr(os, 'execv'),
1835 @unittest.skipUnless(hasattr(os, '_execvpe'),
1910 @unittest.skipUnless(sys.platform == "win32", "Win32-specific test")
1921 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
1979 @unittest.skipUnless(hasattr(os, 'isatty'), 'test needs os.isatty()')
1983 @unittest.skipUnless(hasattr(os, 'closerange'), 'test needs os.closerange()')
1999 @unittest.skipUnless(hasattr(os, 'dup2'), 'test needs os.dup2()')
2003 @unittest.skipUnless(hasattr(os, 'fchmod'), 'test needs os.fchmod()')
2007 @unittest.skipUnless(hasattr(os, 'fchown'), 'test needs os.fchown()')
2011 @unittest.skipUnless(hasattr(os, 'fpathconf'), 'test needs os.fpathconf()')
2016 @unittest.skipUnless(hasattr(os, 'ftruncate'), 'test needs os.ftruncate()')
2021 @unittest.skipUnless(hasattr(os, 'lseek'), 'test needs os.lseek()')
2025 @unittest.skipUnless(hasattr(os, 'read'), 'test needs os.read()')
2029 @unittest.skipUnless(hasattr(os, 'readv'), 'test needs os.readv()')
2034 @unittest.skipUnless(hasattr(os, 'tcsetpgrp'), 'test needs os.tcsetpgrp()')
2038 @unittest.skipUnless(hasattr(os, 'write'), 'test needs os.write()')
2042 @unittest.skipUnless(hasattr(os, 'writev'), 'test needs os.writev()')
2050 @unittest.skipUnless(hasattr(os, 'get_blocking'),
2100 @unittest.skipUnless(hasattr(os, 'setuid'), 'test needs os.setuid()')
2107 @unittest.skipUnless(hasattr(os, 'setgid'), 'test needs os.setgid()')
2114 @unittest.skipUnless(hasattr(os, 'seteuid'), 'test needs os.seteuid()')
2121 @unittest.skipUnless(hasattr(os, 'setegid'), 'test needs os.setegid()')
2128 @unittest.skipUnless(hasattr(os, 'setreuid'), 'test needs os.setreuid()')
2137 @unittest.skipUnless(hasattr(os, 'setreuid'), 'test needs os.setreuid()')
2145 @unittest.skipUnless(hasattr(os, 'setregid'), 'test needs os.setregid()')
2154 @unittest.skipUnless(hasattr(os, 'setregid'), 'test needs os.setregid()')
2221 @unittest.skipUnless(hasattr(os, 'statvfs'),
2234 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
2350 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
2398 @unittest.skipUnless(hasattr(os, 'readlink'), 'needs os.readlink()')
2459 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
2565 @unittest.skipUnless(os.path.lexists(r'C:\Users\All Users')
2636 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
2670 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
2774 @unittest.skipUnless(os.isatty(0) and not win32_is_iot() and (sys.platform.startswith('win') or
2784 @unittest.skipUnless(hasattr(os, 'getppid'), "test needs os.getppid")
2822 @unittest.skipUnless(sys.platform == 'win32', 'win32-specific test')
2830 @unittest.skipUnless(sys.platform == 'win32', 'win32-specific test')
2844 @unittest.skipUnless(hasattr(signal, 'SIGKILL'), 'need signal.SIGKILL')
3035 @unittest.skipUnless(hasattr(os, 'getlogin'), "test needs os.getlogin")
3042 @unittest.skipUnless(hasattr(os, 'getpriority') and hasattr(os, 'setpriority'),
3152 @unittest.skipUnless(hasattr(os, 'sendfile'), "test needs os.sendfile()")
3159 requires_headers_trailers = unittest.skipUnless(SUPPORT_HEADERS_TRAILERS,
3161 requires_32b = unittest.skipUnless(sys.maxsize < 2**32,
3348 @unittest.skipUnless(hasattr(os, 'SF_NODISKIO'),
3375 @unittest.skipUnless(supports_extended_attributes(),
3460 @unittest.skipUnless(hasattr(os, 'get_terminal_size'), "requires os.get_terminal_size")
3509 @unittest.skipUnless(hasattr(os, 'memfd_create'), 'requires os.memfd_create')
3667 @unittest.skipUnless(hasattr(os, 'pipe'), "need os.pipe()")
3688 @unittest.skipUnless(sys.platform == 'win32', 'win32-specific test')
3697 @unittest.skipUnless(hasattr(os, 'dup2'), "need os.dup2()")
3714 @unittest.skipUnless(hasattr(os, 'openpty'), "need os.openpty()")
3789 @unittest.skipUnless(hasattr(os, 'get_blocking'),
4077 @unittest.skipUnless(os.listdir in os.supports_fd,