/third_party/skia/third_party/externals/jinja2/ |
H A D | environment.py | 289 self, 325 self.block_start_string = block_start_string 326 self.block_end_string = block_end_string 327 self.variable_start_string = variable_start_string 328 self.variable_end_string = variable_end_string 329 self.comment_start_string = comment_start_string 330 self.comment_end_string = comment_end_string 331 self.line_statement_prefix = line_statement_prefix 332 self.line_comment_prefix = line_comment_prefix 333 self [all...] |
/third_party/python/Lib/test/ |
H A D | test_wsgiref.py | 29 def __init__(self, server_address, RequestHandlerClass): 30 BaseServer.__init__(self, server_address, RequestHandlerClass) 31 self.server_bind() 33 def server_bind(self): 34 host, port = self.server_address 35 self.server_name = host 36 self.server_port = port 37 self.setup_environ() 42 def setup(self): 43 self [all...] |
H A D | test_dbm_gnu.py | 22 def setUp(self): 23 self.g = None 25 def tearDown(self): 26 if self.g is not None: 27 self.g.close() 31 def test_disallow_instantiation(self): 33 self.g = gdbm.open(filename, 'c') 34 support.check_disallow_instantiation(self, type(self.g)) 36 def test_key_methods(self) [all...] |
H A D | test_string.py | 8 def test_attrs(self): 13 self.assertEqual(string.whitespace, ' \t\n\r\x0b\x0c') 14 self.assertEqual(string.ascii_lowercase, 'abcdefghijklmnopqrstuvwxyz') 15 self.assertEqual(string.ascii_uppercase, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') 16 self.assertEqual(string.ascii_letters, string.ascii_lowercase + string.ascii_uppercase) 17 self.assertEqual(string.digits, '0123456789') 18 self.assertEqual(string.hexdigits, string.digits + 'abcdefABCDEF') 19 self.assertEqual(string.octdigits, '01234567') 20 self.assertEqual(string.punctuation, '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~') 21 self [all...] |
H A D | test_xxlimited.py | 12 def test_xxo_new(self): 13 xxo = self.module.Xxo() 15 def test_xxo_attributes(self): 16 xxo = self.module.Xxo() 17 with self.assertRaises(AttributeError): 19 with self.assertRaises(AttributeError): 23 self.assertEqual(xxo.foo, 1234) 26 with self.assertRaises(AttributeError): 29 def test_foo(self): 31 self [all...] |
H A D | test_raise.py | 20 def __enter__(self): 21 return self 22 def __exit__(self, exc_type, exc_value, exc_tb): 27 def test_invalid_reraise(self): 31 self.assertIn("No active exception", str(e)) 33 self.fail("No exception raised") 35 def test_reraise(self): 43 self.assertIs(exc1, exc2) 45 self.fail("No exception raised") 47 def test_except_reraise(self) [all...] |
H A D | test_stat.py | 81 def setUp(self): 91 def get_mode(self, fname=TESTFN, lstat=True): 96 modestr = self.statmod.filemode(st_mode) 99 def assertS_IS(self, name, mode): 101 fmt = getattr(self.statmod, "S_IF" + name.lstrip("F")) 102 self.assertEqual(self.statmod.S_IFMT(mode), fmt) 105 for funcname in self.format_funcs: 106 func = getattr(self.statmod, funcname, None) 112 self [all...] |
H A D | test_defaultdict.py | 16 def test_basic(self): 18 self.assertEqual(d1.default_factory, None) 21 self.assertEqual(d1, {12: [42]}) 23 self.assertEqual(d1, {12: [42, 24]}) 26 self.assertEqual(d1, {12: [42, 24], 13: [], 14: []}) 27 self.assertTrue(d1[12] is not d1[13] is not d1[14]) 29 self.assertEqual(d2.default_factory, list) 30 self.assertEqual(d2, {"foo": 1, "bar": 2}) 31 self.assertEqual(d2["foo"], 1) 32 self [all...] |
H A D | test_asynchat.py | 31 def __init__(self, event): 32 threading.Thread.__init__(self) 33 self.event = event 34 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 35 self.port = socket_helper.bind_port(self.sock) 38 self.start_resend_event = None 40 def run(self): 41 self.sock.listen() 42 self [all...] |
H A D | test__xxsubinterpreters.py | 135 self = super().__new__(cls, name, id) 136 return self 158 self = super().__new__(cls, action, end, interp) 159 return self 161 def __init__(self, *args, **kwargs): 162 if self.action == 'use': 163 if self.end not in ('same', 'opposite', 'send', 'recv'): 164 raise ValueError(self.end) 165 elif self.action in ('close', 'force-close'): 166 if self [all...] |
H A D | test_contextlib_async.py | 29 async def test_enter(self): 31 async def __aexit__(self, *args): 35 self.assertIs(await manager.__aenter__(), manager) 38 self.assertIs(manager, context) 41 async def test_async_gen_propagates_generator_exit(self): 54 with self.assertRaises(ValueError): 60 self.assertEqual(ret, [11]) 62 def test_exit_is_abstract(self): 66 with self.assertRaises(TypeError): 69 def test_structural_subclassing(self) [all...] |
/third_party/python/Lib/distutils/command/ |
H A D | config.py | 51 def initialize_options(self): 52 self.compiler = None 53 self.cc = None 54 self.include_dirs = None 55 self.libraries = None 56 self.library_dirs = None 59 self.noisy = 1 60 self.dump_source = 1 64 self.temp_files = [] 66 def finalize_options(self) [all...] |
/third_party/python/Lib/tkinter/test/test_tkinter/ |
H A D | test_misc.py | 12 def test_all(self): 13 self.assertIn("Widget", tkinter.__all__) 15 self.assertIn("CASCADE", tkinter.__all__) 16 self.assertIsNotNone(tkinter.CASCADE) 18 self.assertNotIn("re", tkinter.__all__) 19 self.assertNotIn("sys", tkinter.__all__) 20 self.assertNotIn("constants", tkinter.__all__) 22 self.assertNotIn("_tkerror", tkinter.__all__) 24 self.assertNotIn("wantobjects", tkinter.__all__) 26 def test_repr(self) [all...] |
/third_party/node/deps/v8/tools/testrunner/ |
H A D | base_runner.py | 163 def __init__(self, build_config): 166 self.arch = 'ia32' 168 self.arch = build_config['v8_target_cpu'] 170 self.asan = build_config['is_asan'] 171 self.cfi_vptr = build_config['is_cfi'] 172 self.control_flow_integrity = build_config['v8_control_flow_integrity'] 173 self.concurrent_marking = build_config['v8_enable_concurrent_marking'] 174 self.single_generation = build_config['v8_enable_single_generation'] 175 self.dcheck_always_on = build_config['dcheck_always_on'] 176 self [all...] |
/third_party/skia/tools/skpbench/ |
H A D | _adb.py | 13 def __init__(self, device_serial=None, adb_binary=None, echo=False): 14 self.__invocation = [adb_binary] 16 self.__invocation.extend(['-s', device_serial]) 17 self.__echo = echo 18 self.__is_root = None 19 self.__has_established_connection = False 21 def shell(self, cmd): 22 if self.__echo: 23 self.__echo_shell_cmd(cmd) 24 self [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/s390x/uvdevice/ |
H A D | test_uvdevice.c | 40 self->uv_fd = open(UV_PATH, O_ACCMODE); in FIXTURE_SETUP() 42 self->uvio_ioctl.argument_addr = (__u64)self->buffer; in FIXTURE_SETUP() 43 self->uvio_ioctl.argument_len = variant->arg_size; in FIXTURE_SETUP() 44 self->fault_page = in FIXTURE_SETUP() 50 if (self->uv_fd) in FIXTURE_TEARDOWN() 51 close(self->uv_fd); in FIXTURE_TEARDOWN() 52 munmap((void *)self->fault_page, (size_t)getpagesize()); in FIXTURE_TEARDOWN() 59 rc = ioctl(self->uv_fd, variant->ioctl_cmd, NULL); in TEST_F() 64 rc = ioctl(self in TEST_F() 186 att_inval_sizes_test(uint32_t *size, uint32_t max_size, bool test_zero, struct __test_metadata *_metadata, FIXTURE_DATA(attest_fixture) *self) att_inval_sizes_test() argument 234 att_inval_addr_test(__u64 *addr, struct __test_metadata *_metadata, FIXTURE_DATA(attest_fixture) *self) att_inval_addr_test() argument [all...] |
/third_party/node/deps/v8/tools/cppgc/ |
H A D | gen_cmake.py | 95 def __init__(self, builder, filtered_targets): 96 self.builder = builder 97 self.filtered_targets = filtered_targets 98 self.current_target = None 100 def Traverse(self, tree): 101 self.builder.BuildPrologue() 102 self.TraverseTargets(tree) 103 self.builder.BuildEpilogue() 105 def TraverseTargets(self, tree): 114 if target not in self [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | syncgenerator.py | 31 def __init__(self, *args, **kwargs): 35 self.pipeline_stages = [] 36 self.access_flags = [] 39 self.pipeline_stage_condition = dict() 41 self.access_flag_condition = dict() 44 self.pipeline_stage_equivalent = dict() 46 self.pipeline_stage_queue_support = dict() 49 self.access_flag_equivalent = dict() 51 self.access_flag_stage_support = dict() 53 self [all...] |
/third_party/python/Lib/ |
H A D | argparse.py | 118 def __repr__(self): 119 type_name = type(self).__name__ 122 for arg in self._get_args(): 124 for name, value in self._get_kwargs(): 133 def _get_kwargs(self): 134 return list(self.__dict__.items()) 136 def _get_args(self): 164 def __init__(self, 176 self._prog = prog 177 self [all...] |
H A D | _collections_abc.py | 95 def __hash__(self): 110 def __await__(self): 127 def send(self, value): 134 def throw(self, typ, val=None, tb=None): 146 def close(self): 150 self.throw(GeneratorExit) 171 def __aiter__(self): 188 async def __anext__(self): 192 def __aiter__(self): 193 return self [all...] |
/third_party/python/Lib/ctypes/test/ |
H A D | test_structures.py | 16 def test_subclass(self): 26 self.assertEqual(sizeof(X), sizeof(c_int)) 27 self.assertEqual(sizeof(Y), sizeof(c_int)*2) 28 self.assertEqual(sizeof(Z), sizeof(c_int)) 29 self.assertEqual(X._fields_, [("a", c_int)]) 30 self.assertEqual(Y._fields_, [("b", c_int)]) 31 self.assertEqual(Z._fields_, [("a", c_int)]) 33 def test_subclass_delayed(self): 36 self.assertEqual(sizeof(X), 0) 41 self [all...] |
/third_party/libsnd/Scripts/ |
H A D | cstyle.py | 32 def __init__ (self): 33 self.comment_nest = 0 34 self.leading_space_re = re.compile ('^(\t+| )') 35 self.trailing_space_re = re.compile ('(\t+| )$') 36 self.define_hack_re = re.compile ("(#\s*define\s+[a-zA-Z0-9_]+)\(") 38 def comment_nesting (self): 44 return self.comment_nest 46 def __call__ (self, line): 52 line = self.define_hack_re.sub (r'\1 (', line) 54 line = self [all...] |
/third_party/python/Lib/distutils/ |
H A D | text_file.py | 78 def __init__(self, filename=None, file=None, **options): 88 for opt in self.default_options.keys(): 90 setattr(self, opt, options[opt]) 92 setattr(self, opt, self.default_options[opt]) 96 if opt not in self.default_options: 100 self.open(filename) 102 self.filename = filename 103 self.file = file 104 self [all...] |
/third_party/python/Lib/distutils/tests/ |
H A D | test_cygwinccompiler.py | 18 def __init__(self, cmd, shell, stdout): 19 self.cmd = cmd.split()[0] 20 exes = self.test_class._exes 21 if self.cmd in exes: 23 self.stdout = BytesIO(exes[self.cmd]) 25 self.stdout = os.popen(cmd, 'r') 31 def setUp(self): 32 super(CygwinCCompilerTestCase, self).setUp() 33 self [all...] |
/third_party/mesa3d/src/imagination/csbgen/ |
H A D | gen_pack_header.py | 102 def __init__(self, parent: Node, name: str, *, name_is_safe: bool = False) -> None: 103 self.parent = parent 105 self.name = name 107 self.name = safe_name(name) 110 def full_name(self) -> str: 111 if self.name[0] == "_": 112 return self.parent.prefix + self.name.upper() 114 return self.parent.prefix + "_" + self [all...] |