Home
last modified time | relevance | path

Searched refs:skipUnless (Results 1 – 25 of 322) sorted by relevance

12345678910>>...13

/external/bcc/tests/python/
Dtest_tools_smoke.py9 from unittest import main, skipUnless, TestCase
24 @skipUnless(kernel_version_ge(4,1), "requires kernel >= 4.1")
71 @skipUnless(kernel_version_ge(4,4), "requires kernel >= 4.4")
78 @skipUnless(kernel_version_ge(4,4), "requires kernel >= 4.4")
95 @skipUnless(kernel_version_ge(4,4), "requires kernel >= 4.4")
109 @skipUnless(kernel_version_ge(4,4), "requires kernel >= 4.4")
116 @skipUnless(kernel_version_ge(4,9), "requires kernel >= 4.9")
120 @skipUnless(kernel_version_ge(4,4), "requires kernel >= 4.4")
126 @skipUnless(kernel_version_ge(4,3), "requires kernel >= 4.3")
132 @skipUnless(kernel_version_ge(4,4), "requires kernel >= 4.4")
[all …]
/external/python/cpython2/Lib/test/
Dtest_posix.py56 @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'),
[all …]
Dtest_os.py88 @unittest.skipUnless(hasattr(os, 'tempnam'), 'test needs os.tempnam()')
103 @unittest.skipUnless(hasattr(os, 'tmpfile'), 'test needs os.tmpfile()')
153 @unittest.skipUnless(hasattr(os, 'tmpnam'), 'test needs os.tmpnam()')
195 @unittest.skipUnless(hasattr(os, 'stat'), 'test needs os.stat()')
256 @unittest.skipUnless(hasattr(os, 'statvfs'), 'test needs os.statvfs()')
320 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
321 @unittest.skipUnless(get_file_system(test_support.TESTFN) == "NTFS",
328 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
329 @unittest.skipUnless(get_file_system(test_support.TESTFN) == "NTFS",
336 @unittest.skipUnless(sys.platform == "win32", "Win32 specific tests")
[all …]
Dtest_uuid.py323 @unittest.skipUnless(importable('ctypes'), 'requires ctypes')
377 @unittest.skipUnless(importable('ctypes'), 'requires ctypes')
410 @unittest.skipUnless(os.name == 'posix', 'requires Posix')
434 @unittest.skipUnless(os.name == 'posix', 'requires Posix')
474 @unittest.skipUnless(os.name == 'posix', 'requires Posix')
479 @unittest.skipUnless(os.name == 'posix', 'requires Posix')
484 @unittest.skipUnless(os.name == 'posix', 'requires Posix')
489 @unittest.skipUnless(os.name == 'posix', 'requires Posix')
494 @unittest.skipUnless(os.name == 'nt', 'requires Windows')
499 @unittest.skipUnless(importable('win32wnet'), 'requires win32wnet')
[all …]
Dtest_shutil.py82 @unittest.skipUnless(hasattr(os, 'chmod'), 'requires os.chmod()')
314 @unittest.skipUnless(hasattr(os, "mkfifo"), 'requires os.mkfifo()')
325 @unittest.skipUnless(hasattr(os, "mkfifo"), 'requires os.mkfifo()')
346 @unittest.skipUnless(hasattr(os, 'chflags') and
375 @unittest.skipUnless(zlib, "requires zlib")
432 @unittest.skipUnless(zlib, "Requires zlib")
433 @unittest.skipUnless(find_executable('tar'),
464 @unittest.skipUnless(ZIP_SUPPORT, 'Need zip support to run')
502 @unittest.skipUnless(ZIP_SUPPORT, 'Need zip support to run')
503 @unittest.skipUnless(find_executable('zip'),
[all …]
Dtest_gdb.py701 @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
714 @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
722 @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
732 @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
783 @unittest.skipUnless(thread,
824 @unittest.skipUnless(thread,
852 @unittest.skipUnless(thread,
906 @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
940 @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
/external/python/cpython3/Lib/test/
Dtest_posix.py25 requires_32b = unittest.skipUnless(sys.maxsize < 2**32,
38 requires_sched = unittest.skipUnless(_supports_sched(), 'requires POSIX scheduler API')
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'),
[all …]
Dtest_signal.py80 @unittest.skipUnless(sys.executable, "sys.executable required.")
97 @unittest.skipUnless(sys.platform == "win32", "Windows specific")
130 @unittest.skipUnless(sys.executable, "sys.executable required.")
386 @unittest.skipUnless(hasattr(signal, 'pthread_sigmask'),
404 @unittest.skipUnless(hasattr(socket, 'socketpair'), 'need socket.socketpair')
788 @unittest.skipUnless(hasattr(signal, 'sigpending'),
793 @unittest.skipUnless(hasattr(signal, 'pthread_sigmask'),
795 @unittest.skipUnless(hasattr(signal, 'sigpending'),
824 @unittest.skipUnless(hasattr(signal, 'pthread_kill'),
849 @unittest.skipUnless(hasattr(signal, 'pthread_sigmask'),
[all …]
Dtest_crypt.py15 @unittest.skipUnless(sys.platform == 'win32', 'This should only run on windows')
23 @unittest.skipUnless(crypt, 'crypt module is required')
59 @unittest.skipUnless(
78 @unittest.skipUnless(
Dtest_uuid.py522 @unittest.skipUnless(os.name == 'posix', 'POSIX-only test')
548 @unittest.skipUnless(os.name == 'posix', 'POSIX-only test')
556 @unittest.skipUnless(os.name == 'posix', 'POSIX-only test')
562 @unittest.skipUnless(os.name == 'posix', 'POSIX-only test')
568 @unittest.skipUnless(os.name == 'posix', 'POSIX-only test')
641 @unittest.skipUnless(os.name == 'posix', 'requires Posix')
672 @unittest.skipUnless(c_uuid, 'requires the C _uuid module')
825 @unittest.skipUnless(_uuid._ifconfig_getnode in _uuid._GETTERS,
831 @unittest.skipUnless(_uuid._ip_getnode in _uuid._GETTERS,
837 @unittest.skipUnless(_uuid._arp_getnode in _uuid._GETTERS,
[all …]
Dtest_os.py80 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")
[all …]
Dtest_time.py92 @unittest.skipUnless(hasattr(time, 'clock_gettime'),
98 @unittest.skipUnless(hasattr(time, 'clock_gettime'),
100 @unittest.skipUnless(hasattr(time, 'CLOCK_MONOTONIC'),
107 @unittest.skipUnless(hasattr(time, 'pthread_getcpuclockid'),
109 @unittest.skipUnless(hasattr(time, 'clock_gettime'),
125 @unittest.skipUnless(hasattr(time, 'clock_getres'),
132 @unittest.skipUnless(hasattr(time, 'clock_settime'),
318 @unittest.skipUnless(hasattr(time, "tzset"),
435 @unittest.skipUnless(platform.libc_ver()[0] != 'glibc',
509 @unittest.skipUnless(hasattr(time, 'clock_settime'),
[all …]
Dtest_eintr.py11 @unittest.skipUnless(os.name == "posix", "only supported on Unix")
14 @unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
/external/python/cpython2/Lib/distutils/tests/
Dtest_archive_util.py55 @unittest.skipUnless(zlib, "requires zlib")
68 unittest.skipUnless(splitdrive(tmpdir)[0] == splitdrive(tmpdir2)[0],
119 @unittest.skipUnless(zlib, "Requires zlib")
120 @unittest.skipUnless(find_executable('tar') and find_executable('gzip'),
173 @unittest.skipUnless(find_executable('compress'),
205 @unittest.skipUnless(zlib, "Requires zlib")
206 @unittest.skipUnless(ZIP_SUPPORT, 'Need zip support to run')
230 @unittest.skipUnless(zlib, "Requires zlib")
257 @unittest.skipUnless(zlib, "Requires zlib")
258 @unittest.skipUnless(UID_GID_SUPPORT, "Requires grp and pwd support")
[all …]
Dtest_sdist.py92 @unittest.skipUnless(zlib, "requires zlib")
135 @unittest.skipUnless(zlib, "requires zlib")
164 @unittest.skipUnless(zlib, "requires zlib")
186 @unittest.skipUnless(zlib, "requires zlib")
259 @unittest.skipUnless(zlib, "requires zlib")
320 @unittest.skipUnless(zlib, "requires zlib")
321 @unittest.skipUnless(UID_GID_SUPPORT, "Requires grp and pwd support")
394 @unittest.skipUnless(zlib, "requires zlib")
436 @unittest.skipUnless(zlib, "requires zlib")
453 @unittest.skipUnless(zlib, 'requires zlib')
[all …]
Dtest_bdist_rpm.py50 @unittest.skipUnless(sys.platform.startswith('linux'),
52 @unittest.skipUnless(zlib, "requires zlib")
93 @unittest.skipUnless(sys.platform.startswith('linux'),
95 @unittest.skipUnless(zlib, "requires zlib")
/external/python/cpython2/Lib/ctypes/test/
Dtest_loading.py25 @unittest.skipUnless(libc_name is not None, 'could not find libc')
32 @unittest.skipUnless(libc_name is not None, 'could not find libc')
37 @unittest.skipUnless(libc_name is not None, 'could not find libc')
38 @unittest.skipUnless(libc_name is not None and
54 @unittest.skipUnless(os.name in ("nt", "ce"),
73 @unittest.skipUnless(os.name in ("nt", "ce"),
90 @unittest.skipUnless(os.name == "nt", 'Windows-specific test')
101 @unittest.skipUnless(os.name == "nt", 'Windows-specific test')
Dtest_win32.py11 @unittest.skipUnless(sys.platform == "win32", 'Windows-specific test')
12 @unittest.skipUnless(sizeof(c_void_p) == sizeof(c_int),
39 @unittest.skipUnless(sys.platform == "win32", 'Windows-specific test')
41 @unittest.skipUnless('MSC' in sys.version, "SEH only supported by MSC")
55 @unittest.skipUnless(sys.platform == "win32", 'Windows-specific test')
Dtest_find.py54 @unittest.skipUnless(lib_gl, 'lib_gl not available')
59 @unittest.skipUnless(lib_glu, 'lib_glu not available')
64 @unittest.skipUnless(lib_gle, 'lib_gle not available')
/external/python/cpython3/Lib/test/eintrdata/
Deintr_tester.py38 @unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
78 @unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
98 @unittest.skipUnless(hasattr(os, 'wait3'), 'requires wait3()')
111 @unittest.skipUnless(hasattr(os, 'wait4'), 'requires wait4()')
183 @unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
187 @unittest.skipUnless(hasattr(socket, 'socketpair'), 'needs socketpair()')
226 @unittest.skipUnless(hasattr(socket.socket, 'recvmsg'), 'needs recvmsg()')
282 @unittest.skipUnless(hasattr(socket.socket, 'sendmsg'), 'needs sendmsg()')
315 @unittest.skipUnless(hasattr(os, 'mkfifo'), 'needs mkfifo()')
366 @unittest.skipUnless(hasattr(signal, "setitimer"), "requires setitimer()")
[all …]
/external/python/cpython3/Lib/distutils/tests/
Dtest_archive_util.py64 @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run')
72 @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run')
77 @unittest.skipUnless(bz2, 'Need bz2 support to run')
82 @unittest.skipUnless(lzma, 'Need lzma support to run')
87 @unittest.skipUnless(can_fs_encode('årchiv'),
95 @unittest.skipUnless(can_fs_encode('のアーカイブ'),
106 unittest.skipUnless(splitdrive(tmpdir)[0] == splitdrive(tmpdir2)[0],
145 @unittest.skipUnless(find_executable('tar') and find_executable('gzip')
202 @unittest.skipUnless(find_executable('compress'),
235 @unittest.skipUnless(ZIP_SUPPORT and ZLIB_SUPPORT,
[all …]
Dtest_sdist.py90 @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run')
135 @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run')
168 @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run')
247 @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run')
334 @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run')
376 @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run')
393 @unittest.skipUnless(ZLIB_SUPPORT, "Need zlib support to run")
410 @unittest.skipUnless(ZLIB_SUPPORT, 'Need zlib support to run')
440 @unittest.skipUnless(ZLIB_SUPPORT, "requires zlib")
441 @unittest.skipUnless(UID_GID_SUPPORT, "Requires grp and pwd support")
/external/python/cpython3/Lib/ctypes/test/
Dtest_loading.py52 @unittest.skipUnless(os.name == "nt",
70 @unittest.skipUnless(os.name == "nt",
87 @unittest.skipUnless(os.name == "nt", 'Windows-specific test')
98 @unittest.skipUnless(os.name == "nt", 'Windows-specific test')
117 @unittest.skipUnless(os.name == "nt",
Dtest_win32.py9 @unittest.skipUnless(sys.platform == "win32", 'Windows-specific test')
11 @unittest.skipUnless('MSC' in sys.version, "SEH only supported by MSC")
28 @unittest.skipUnless(sys.platform == "win32", 'Windows-specific test')
46 @unittest.skipUnless(sys.platform == "win32", 'Windows-specific test')
70 @unittest.skipUnless(sys.platform == "win32", 'Windows-specific test')
/external/python/pycparser/tests/
Dtest_general.py28 @unittest.skipUnless(platform.system() == 'Linux',
46 @unittest.skipUnless(platform.system() == 'Linux',
58 @unittest.skipUnless(platform.system() == 'Linux',

12345678910>>...13