Home
last modified time | relevance | path

Searched refs:self (Results 1026 - 1050 of 6285) sorted by relevance

1...<<41424344454647484950>>...252

/third_party/python/Lib/test/test_importlib/import_/
H A Dtest___package__.py37 def import_module(self, globals_):
38 with self.mock_modules('pkg.__init__', 'pkg.fake') as importer:
40 self.__import__('pkg.fake')
41 module = self.__import__('',
46 def test_using___package__(self):
48 module = self.import_module({'__package__': 'pkg.fake'})
49 self.assertEqual(module.__name__, 'pkg')
51 def test_using___name__(self):
55 module = self.import_module({'__name__': 'pkg.fake',
57 self
[all...]
/third_party/vk-gl-cts/modules/gles3/scripts/
H A Dgen-qualification_order.py108 def __init__(self, compileFail, invariantInput, paramList):
109 self.compileFail = 'expect compile_fail' if compileFail else 'expect pass'
110 self.name = ''
116 self.name += p.name
118 self.name += '_'
125 self.name += "_invariant_input"
133 self.variableVtx = variables.replace("anon_centroid", "out")
134 self.variableFrg = variables.replace("anon_centroid", "in")
135 self.variableVtx = self
[all...]
/third_party/python/Lib/unittest/test/
H A Dtest_suite.py14 def test_1(self): pass
15 def test_2(self): pass
16 def test_3(self): pass
17 def runTest(self): pass
50 def test_init__tests_optional(self):
53 self.assertEqual(suite.countTestCases(), 0)
56 self.assertEqual(suite.countTestCases(), 0)
65 def test_init__empty_tests(self):
68 self.assertEqual(suite.countTestCases(), 0)
71 self
[all...]
/kernel/linux/linux-5.10/scripts/
H A Dbpf_helpers_doc.py17 def __init__(self, line='<line not provided>', reader=None):
19 BaseException.__init__(self,
23 BaseException.__init__(self, 'Error parsing line: %s' % line)
32 def __init__(self, proto='', desc='', ret=''):
33 self.proto = proto
34 self.desc = desc
35 self.ret = ret
37 def proto_break_down(self):
46 capture = proto_re.match(self.proto)
67 stored as Helper object, in the self
[all...]
/third_party/python/Modules/
H A D_queuemodule.c42 simplequeue_clear(simplequeueobject *self) in simplequeue_clear() argument
44 Py_CLEAR(self->lst); in simplequeue_clear()
49 simplequeue_dealloc(simplequeueobject *self) in simplequeue_dealloc() argument
51 PyTypeObject *tp = Py_TYPE(self); in simplequeue_dealloc()
53 PyObject_GC_UnTrack(self); in simplequeue_dealloc()
54 if (self->lock != NULL) { in simplequeue_dealloc()
56 if (self->locked > 0) in simplequeue_dealloc()
57 PyThread_release_lock(self->lock); in simplequeue_dealloc()
58 PyThread_free_lock(self->lock); in simplequeue_dealloc()
60 (void)simplequeue_clear(self); in simplequeue_dealloc()
68 simplequeue_traverse(simplequeueobject *self, visitproc visit, void *arg) simplequeue_traverse() argument
86 simplequeueobject *self; simplequeue_new_impl() local
122 _queue_SimpleQueue_put_impl(simplequeueobject *self, PyObject *item, int block, PyObject *timeout) _queue_SimpleQueue_put_impl() argument
150 _queue_SimpleQueue_put_nowait_impl(simplequeueobject *self, PyObject *item) _queue_SimpleQueue_put_nowait_impl() argument
157 simplequeue_pop_item(simplequeueobject *self) simplequeue_pop_item() argument
204 _queue_SimpleQueue_get_impl(simplequeueobject *self, PyTypeObject *cls, int block, PyObject *timeout_obj) _queue_SimpleQueue_get_impl() argument
301 _queue_SimpleQueue_get_nowait_impl(simplequeueobject *self, PyTypeObject *cls) _queue_SimpleQueue_get_nowait_impl() argument
315 _queue_SimpleQueue_empty_impl(simplequeueobject *self) _queue_SimpleQueue_empty_impl() argument
328 _queue_SimpleQueue_qsize_impl(simplequeueobject *self) _queue_SimpleQueue_qsize_impl() argument
[all...]
/third_party/protobuf/python/google/protobuf/
H A Ddescriptor.py81 self = object.__new__(cls)
82 self._lock = threading.Lock() # pylint: disable=protected-access
83 return self
85 def __enter__(self):
86 self._lock.acquire()
88 def __exit__(self, exc_type, exc_value, exc_tb):
89 self._lock.release()
134 def __init__(self, options, serialized_options, options_class_name):
139 self._options = options
140 self
[all...]
/third_party/python/Lib/test/
H A Dtest_format.py98 def test_common_format(self):
286 def test_str_format(self):
319 def test_bytes_and_bytearray_format(self):
330 def __bytes__(self):
393 def test_nul(self):
400 def test_non_ascii(self):
403 self.assertEqual(format("abc", "\u2007<5"), "abc\u2007\u2007")
404 self.assertEqual(format(123, "\u2007<5"), "123\u2007\u2007")
405 self.assertEqual(format(12.3, "\u2007<6"), "12.3\u2007\u2007")
406 self
[all...]
H A Dtest_ntpath.py79 def assertPathEqual(self, path1, path2):
82 self.assertEqual(path1, path2)
84 def assertPathIn(self, path, pathset):
85 self.assertIn(_norm(path), _norm(pathset))
89 def test_splitext(self):
101 def test_splitdrive(self):
119 self.assertEqual(ntpath.splitdrive('//conky/MOUNTPOİNT/foo/bar'),
155 def test_split(self):
167 def test_isabs(self):
177 def test_commonprefix(self)
[all...]
H A Dtest_ttk_textonly.py12 def splitlist(self, arg):
17 def wantobjects(self):
24 def __init__(self, val):
25 self.val = val
27 def __str__(self):
28 return str(self.val)
34 def __init__(self, *args):
35 self.val = args
37 def __str__(self):
38 return ' '.join(self
[all...]
/kernel/linux/linux-6.6/scripts/gdb/linux/
H A Dpgtable.py66 def __init__(self, cr3, page_levels):
67 self.cr3 = cr3
68 self.page_levels = page_levels
69 self.page_level_write_through = is_bit_defined_tupled(cr3, 3)
70 self.page_level_cache_disabled = is_bit_defined_tupled(cr3, 4)
71 self.next_entry_physical_address = cr3 & PHYSICAL_ADDRESS_MASK & page_mask()
73 def next_entry(self, va):
74 next_level = self.page_levels
75 return PageHierarchyEntry(entry_va(next_level, self.next_entry_physical_address, va), next_level)
77 def mk_string(self)
[all...]
/third_party/mesa3d/src/vulkan/overlay-layer/
H A Dmesa-overlay-control.py20 def __init__(self, path):
29 self.sock = sock
34 self.epoll = epoll
36 def recv(self, timeout):
44 events = self.epoll.poll(timeout)
47 if fd != self.sock.fileno():
55 msg = self.sock.recv(4096)
65 def send(self, msg):
66 self.sock.send(msg)
73 def __init__(self, con
[all...]
/third_party/python/Lib/idlelib/
H A Dtextview.py17 def set(self, lo, hi):
19 self.grid()
21 self.grid_remove()
24 def pack(self, **kwargs):
25 raise TclError(f'{self.__class__.__name__} does not support "pack"')
27 def place(self, **kwargs):
28 raise TclError(f'{self.__class__.__name__} does not support "place"')
34 def __init__(self, master, wrap=NONE, **kwargs):
49 text = self.text = Text(self, wra
[all...]
/third_party/python/Lib/concurrent/futures/
H A Dthread.py47 def __init__(self, future, fn, args, kwargs):
48 self.future = future
49 self.fn = fn
50 self.args = args
51 self.kwargs = kwargs
53 def run(self):
54 if not self.future.set_running_or_notify_cancel():
58 result = self.fn(*self.args, **self
[all...]
/third_party/python/Lib/test/test_importlib/
H A Dtest_windows.py93 def test_find_spec_missing(self):
94 spec = self.machinery.WindowsRegistryFinder.find_spec('spam')
95 self.assertIs(spec, None)
97 def test_find_module_missing(self):
100 loader = self.machinery.WindowsRegistryFinder.find_module('spam')
101 self.assertIs(loader, None)
103 def test_module_found(self):
104 with setup_module(self.machinery, self.test_module):
107 loader = self
[all...]
/third_party/vk-gl-cts/scripts/log/
H A Dbottleneck_report.py31 def __init__(self):
32 self.path = ""
33 self.numberOfTests = 0
34 self.timeOfExecution = 0
37 def __init__(self):
38 self.path = ""
39 self.timeOfExecution = 0
48 def __init__ (self):
49 self.list = []
50 self
[all...]
/test/testfwk/xdevice/plugins/devicetest/core/
H A Dtest_case.py78 def __init__(self):
96 def __init__(self, tag, configs):
97 self.cur_case = None
98 self.devices = []
99 self.configs = configs
100 self.result = RunResult.PASSED
101 self.last_result = RunResult.PASSED
102 self.test_method_result = RunResult.PASSED
103 self.section = RunSection.SETUP
104 self
[all...]
/third_party/node/deps/v8/tools/unittests/
H A Drun_tests_test.py39 Result.__str__ = lambda self: (
41 (self.returncode, self.stdout, self.stderr))
163 def testPass(self):
177 self.assertIn('sweet/bananas default: PASS', result.stdout, result)
179 # self.assertIn('Total time:', result.stderr, result)
180 # self.assertIn('sweet/bananas', result.stderr, result)
181 self.assertEqual(0, result.returncode, result)
183 def testPassHeavy(self)
[all...]
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
H A Dmessage_test.py78 def testGoldenMessage(self):
82 test_util.ExpectAllFieldsSet(self, golden_message)
83 self.assertEqual(golden_data, golden_message.SerializeToString())
85 self.assertEqual(golden_data, golden_copy.SerializeToString())
87 def testGoldenExtensions(self):
93 self.assertEquals(all_set, golden_message)
94 self.assertEqual(golden_data, golden_message.SerializeToString())
96 self.assertEqual(golden_data, golden_copy.SerializeToString())
98 def testGoldenPackedMessage(self):
104 self
[all...]
/kernel/linux/linux-6.6/tools/cgroup/
H A Diocost_monitor.py64 def __init__(self, root_blkcg, q_id, include_dying=False):
65 self.include_dying = include_dying
66 self.blkgs = []
67 self.walk(root_blkcg, q_id, '')
72 def walk(self, blkcg, q_id, parent_path):
73 if not self.include_dying and \
84 self.blkgs.append((path if path else '/', blkg))
88 self.walk(c, q_id, path)
90 def __iter__(self):
91 return iter(self
[all...]
/third_party/googletest/googletest/test/
H A Dgoogletest-failfast-unittest.py116 def testDefaultBehavior(self):
120 self.assertIn('22 FAILED TEST', txt)
122 def testGoogletestFlag(self):
124 self.assertIn('1 FAILED TEST', txt)
125 self.assertIn('[ SKIPPED ] 3 tests', txt)
128 self.assertIn('4 FAILED TEST', txt)
129 self.assertNotIn('[ SKIPPED ]', txt)
131 def testGoogletestEnvVar(self):
137 self.assertIn('1 FAILED TEST', txt)
138 self
[all...]
/third_party/python/Lib/distutils/command/
H A Dregister.py29 sub_commands = [('check', lambda self: True)]
31 def initialize_options(self):
32 PyPIRCCommand.initialize_options(self)
33 self.list_classifiers = 0
34 self.strict = 0
36 def finalize_options(self):
37 PyPIRCCommand.finalize_options(self)
39 check_options = {'strict': ('register', self.strict),
41 self.distribution.command_options['check'] = check_options
43 def run(self)
[all...]
/third_party/python/Lib/test/test_json/
H A Dtest_tool.py89 def test_stdin_stdout(self):
91 process = subprocess.run(args, input=self.data, capture_output=True, text=True, check=True)
92 self.assertEqual(process.stdout, self.expect)
93 self.assertEqual(process.stderr, '')
95 def _create_infile(self, data=None):
98 self.addCleanup(os.remove, infile)
99 fp.write(data or self.data)
102 def test_infile_stdout(self):
103 infile = self
[all...]
/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/beans/
H A Dtouch_point.py36 def __init__(self, input_str):
38 self.original_str = input_str
39 self.id = get_value_as_int(input_str, get_sample_key(touch_point_keyword, 'id'),
41 self.point = get_value_as_str(input_str, get_sample_key(touch_point_keyword, 'point'),
43 self.screenPoint = get_value_as_str(input_str, get_sample_key(touch_point_keyword, 'screenPoint'),
45 self.type = get_value_as_str(input_str, get_sample_key(touch_point_keyword, 'type'),
47 self.timestamp = get_value_as_str(input_str, get_sample_key(touch_point_keyword, 'timestamp'),
49 self.isInjected = get_value_as_int(input_str, get_sample_key(touch_point_keyword, 'isInjected'),
51 self.check_parse_result()
53 def check_parse_result(self)
[all...]
/third_party/node/deps/v8/tools/testrunner/testproc/
H A Drerun.py12 def __init__(self, rerun_max, rerun_max_total=None):
13 super(RerunProc, self).__init__('Rerun')
14 self._requirement = base.DROP_OUTPUT
16 self._rerun = {}
17 self._results = collections.defaultdict(list)
18 self._rerun_max = rerun_max
19 self._rerun_total_left = rerun_max_total
21 def _next_test(self, test):
22 return self._send_next_subtest(test)
24 def _result_for(self, tes
[all...]
/third_party/python/Lib/multiprocessing/
H A Dpopen_fork.py15 def __init__(self, process_obj):
17 self.returncode = None
18 self.finalizer = None
19 self._launch(process_obj)
21 def duplicate_for_child(self, fd):
24 def poll(self, flag=os.WNOHANG):
25 if self.returncode is None:
27 pid, sts = os.waitpid(self.pid, flag)
32 if pid == self.pid:
33 self
[all...]

Completed in 12 milliseconds

1...<<41424344454647484950>>...252