Lines Matching defs:support

32 from test import support
33 from test.support import import_helper
34 from test.support import os_helper
35 from test.support import socket_helper
36 from test.support import warnings_helper
66 from test.support.script_helper import assert_python_ok
67 from test.support import unix_shell
68 from test.support.os_helper import FakePath
114 # longer path if longer paths support is enabled. Internally, the os
121 # than MAX_PATH if long paths support is disabled:
165 if support.verbose:
187 support.is_emscripten, "Test is unstable under Emscripten."
190 support.is_wasi, "WASI does not support dup."
213 @support.cpython_only
231 @support.cpython_only
236 @support.bigmemtest(size=INT_MAX + 10, memuse=1, dry_run=False)
313 symlink = support.get_attribute(os, "symlink")
318 pass # No OS support or unprivileged user
346 # in a system with the syscall but without support
385 # in a system with the syscall but without support
430 # in a system with the syscall but without support
465 # in a system with the syscall but without support
505 # in a system with the syscall but without support
835 "follow_symlinks support for utime required "
845 "fd support for utime required for this test.")
855 "dir_fd support for utime required for this test.")
955 @support.cpython_only
1003 @support.requires_subprocess()
1014 @support.requires_subprocess()
1109 @support.requires_subprocess()
1129 @support.requires_mac_ver(10, 6)
1186 elif not support.has_subprocess_support:
1344 if not support.is_emscripten:
1419 self.skipTest("need symlink support")
1530 support.is_emscripten, "Cannot dup stdout on Emscripten"
1595 support.is_emscripten or support.is_wasi,
1611 support.is_emscripten or support.is_wasi,
1629 support.is_emscripten or support.is_wasi,
1645 raise unittest.SkipTest('No support for S_ISGID dir mode.')
1794 @unittest.skipIf(support.is_wasi, "WASI has no /dev/null")
1919 import test.support
1921 with test.support.SuppressCrashReport():
1936 import test.support
1938 with test.support.SuppressCrashReport():
2141 @unittest.skipIf(support.is_wasi, "Cannot create invalid FD on WASI.")
2193 support.is_emscripten,
2221 support.is_emscripten or support.is_wasi,
2258 @support.requires_subprocess()
2352 @support.requires_subprocess()
2361 @support.requires_subprocess()
2371 @support.requires_subprocess()
2546 @support.requires_subprocess()
2565 @support.requires_subprocess()
2844 if support.verbose:
2940 @support.requires_subprocess()
3041 support.is_emscripten, "Cannot get encoding of stdin on Emscripten"
3049 @support.requires_subprocess()
3072 # don't use support.wait_process() to test directly os.waitpid()
3113 code = f'import time; time.sleep({support.LONG_TIMEOUT})'
3122 @support.requires_subprocess()
3218 support.wait_process(pid, exitcode=self.exitcode)
3354 'requires headers and trailers support')
3580 "no non-broken extended attribute support")
3582 @support.requires_linux_version(2, 6, 39)
3714 @support.requires_linux_version(3, 17)
3731 @support.requires_linux_version(2, 6, 30)
3917 # FD inheritance check is only useful for systems with process support.
3918 @support.requires_subprocess()
4108 @unittest.skipIf(support.is_emscripten, "Cannot unset blocking flag")
4396 'fd support for listdir required for this test.')
4421 @unittest.skipIf(support.is_wasi, "WASI maps '' to cwd")
4483 support.gc_collect()
4565 @support.requires_fork()
4572 from test import support
4575 support.wait_process(pid, exitcode=0)