Lines Matching defs:support

3 from test import support
4 from test.support import import_helper
5 from test.support import os_helper
6 from test.support import warnings_helper
7 from test.support.script_helper import assert_python_ok
34 # Emscripten/WASI have 32 bits pointers, but support 64 bits syscall args.
35 sys.maxsize < 2**32 and not (support.is_emscripten or support.is_wasi),
189 @unittest.skipUnless(getattr(os, 'execve', None) in os.supports_fd, "test needs execve() to support the fd parameter")
190 @support.requires_fork()
199 support.wait_process(pid, exitcode=0)
205 @support.requires_fork()
215 @support.requires_fork()
404 # issue10812, ZFS doesn't appear to support posix_fallocate,
444 @unittest.skipUnless(os.utime in os.supports_fd, "test needs fd support in os.utime")
465 @unittest.skipUnless(os.utime in os.supports_follow_symlinks, "test needs follow_symlinks support in os.utime")
550 @unittest.skipIf(support.is_wasi, "WASI does not have dup()")
568 @unittest.skipIf(support.is_wasi, "WASI does not have dup2()")
579 @support.requires_linux_version(2, 6, 23)
580 @support.requires_subprocess()
675 # mknod(), or only support creating device nodes.
740 if support.is_emscripten:
790 @unittest.skipIf(support.is_emscripten, "getgid() is a stub")
802 @unittest.skipIf(support.is_emscripten, "getgid() is a stub")
851 "test needs fd support for posix.listdir()")
887 @support.requires_linux_version(2, 6, 27)
910 os.write(w, b'x' * support.PIPE_MAX_SIZE)
914 @support.cpython_only
916 @support.requires_linux_version(2, 6, 27)
1073 @support.requires_subprocess()
1111 "don't have scheduling support")
1113 "don't have sched affinity support")
1221 @unittest.skipIf(support.is_wasi, "No dynamic linking on WASI")
1250 # Some OSs claim to support SEEK_HOLE/SEEK_DATA
1315 self.skipTest("system does not support pidfd_open")
1345 @unittest.skipUnless(os.access in os.supports_dir_fd, "test needs dir_fd support for os.access()")
1350 @unittest.skipUnless(os.chmod in os.supports_dir_fd, "test needs dir_fd support in os.chmod()")
1360 "test needs dir_fd support in os.chown()")
1361 @unittest.skipIf(support.is_emscripten, "getgid() is a stub")
1366 @unittest.skipUnless(os.stat in os.supports_dir_fd, "test needs dir_fd support in os.stat()")
1386 @unittest.skipUnless(os.utime in os.supports_dir_fd, "test needs dir_fd support in os.utime()")
1418 support.is_wasi,
1423 "test needs dir_fd support in os.link()"
1437 @unittest.skipUnless(os.mkdir in os.supports_dir_fd, "test needs dir_fd support in os.mkdir()")
1447 "test requires both stat.S_IFIFO and dir_fd support for os.mknod()")
1457 # mknod(), or only support creating device nodes.
1463 @unittest.skipUnless(os.open in os.supports_dir_fd, "test needs dir_fd support in os.open()")
1477 "test needs dir_fd support in os.readlink()")
1484 @unittest.skipUnless(os.rename in os.supports_dir_fd, "test needs dir_fd support in os.rename()")
1493 @unittest.skipUnless(os.symlink in os.supports_dir_fd, "test needs dir_fd support in os.symlink()")
1500 @unittest.skipUnless(os.unlink in os.supports_dir_fd, "test needs dir_fd support in os.unlink()")
1512 @unittest.skipUnless(hasattr(os, 'mkfifo') and os.mkfifo in os.supports_dir_fd, "test needs dir_fd support in os.mkfifo()")
1582 support.wait_process(pid, exitcode=0)
1612 support.wait_process(pid, exitcode=0)
1623 support.wait_process(pid, exitcode=0)
1632 support.wait_process(pid, exitcode=0)
1641 support.wait_process(pid, exitcode=0)
1650 support.wait_process(pid, exitcode=0)
1665 support.wait_process(pid, exitcode=0)
1686 support.wait_process(pid, exitcode=0)
1727 support.wait_process(pid, exitcode=0)
1751 support.wait_process(pid, exitcode=-signal.SIGUSR1)
1785 support.wait_process(pid, exitcode=0)
1805 support.wait_process(pid, exitcode=0)
1817 support.wait_process(pid, exitcode=0)
1864 support.wait_process(pid, exitcode=0)
1883 support.wait_process(pid, exitcode=0)
1901 support.wait_process(pid, exitcode=0)
1933 from test import support
1938 support.wait_process(pid, exitcode=0)
1950 # These test cases verify that weak linking support on macOS works
2198 support.reap_children()