Home
last modified time | relevance | path

Searched refs:self (Results 176 - 200 of 4463) sorted by relevance

12345678910>>...179

/third_party/python/Lib/test/
H A Dtest_pyexpat.py19 def setUp(self):
20 self.parser = expat.ParserCreate(namespace_separator='!')
22 def test_buffer_text(self):
23 self.assertIs(self.parser.buffer_text, False)
25 self.parser.buffer_text = x
26 self.assertIs(self.parser.buffer_text, bool(x))
28 def test_namespace_prefixes(self):
29 self
[all...]
H A Dtest_urllib2_localnet.py37 def __init__(self, server_address, RequestHandlerClass):
38 http.server.HTTPServer.__init__(self,
44 self.socket.settimeout(0.1)
46 def get_request(self):
49 request, client_address = self.socket.accept()
61 def __init__(self, request_handler):
62 threading.Thread.__init__(self)
63 self._stop_server = False
64 self.ready = threading.Event()
66 self
[all...]
H A Dtest_tcl.py37 def testFlattenLen(self):
39 self.assertRaises(TypeError, _tkinter._flatten, True)
41 self.assertRaises(TypeError, _tkinter._flatten, {})
44 self.assertRaises(TypeError, _tkinter._flatten, 'string')
45 self.assertRaises(TypeError, _tkinter._flatten, {'set'})
50 def setUp(self):
51 self.interp = Tcl()
52 self.wantobjects = self.interp.tk.wantobjects()
54 def testEval(self)
[all...]
H A Dtest_genericpath.py27 def test_no_argument(self):
28 for attr in self.common_attributes + self.attributes:
29 with self.assertRaises(TypeError):
30 getattr(self.pathmodule, attr)()
31 raise self.fail("{}.{}() did not raise a TypeError"
32 .format(self.pathmodule.__name__, attr))
34 def test_commonprefix(self):
35 commonprefix = self.pathmodule.commonprefix
36 self
[all...]
H A Dtest_named_expressions.py7 def test_named_expression_invalid_01(self):
10 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
13 def test_named_expression_invalid_02(self):
16 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
19 def test_named_expression_invalid_03(self):
22 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
25 def test_named_expression_invalid_04(self):
28 with self.assertRaisesRegex(SyntaxError, "invalid syntax"):
31 def test_named_expression_invalid_06(self):
34 with self
[all...]
H A Dtest_asyncore.py29 def __init__(self):
30 self.closed = False
32 def close(self):
33 self.closed = True
35 def fileno(self):
39 def __init__(self):
40 self.socket = dummysocket()
42 def close(self):
43 self.socket.close()
46 def __init__(self)
[all...]
H A Dtest_memoryview.py24 def _source(self):
25 return self.source_bytes
28 def _types(self):
29 return filter(None, [self.ro_type, self.rw_type])
31 def check_getitem_with_type(self, tp):
32 b = tp(self._source)
34 m = self._view(b)
35 self.assertEqual(m[0], ord(b"a"))
36 self
[all...]
H A Dtest_finalization.py73 def check_sanity(self):
78 def __del__(self):
84 if not self._cleaning:
85 self.del_calls.append(id(self))
86 self.check_sanity()
87 self.side_effect()
89 self.errors.append(e)
91 def side_effect(self):
99 def __init__(self)
[all...]
H A Dtest_enumerate.py11 def __init__(self, seqn):
12 self.seqn = seqn
13 def __getitem__(self, i):
14 return self.seqn[i]
18 def __init__(self, seqn):
19 self.seqn = seqn
20 self.i = 0
21 def __iter__(self):
22 return self
23 def __next__(self)
[all...]
H A Dtest_configparser.py16 def items(self):
17 return sorted(self.data.items())
19 def keys(self):
20 return sorted(self.data.keys())
22 def values(self):
23 return [i[1] for i in self.items()]
25 def iteritems(self):
26 return iter(self.items())
28 def iterkeys(self):
29 return iter(self
[all...]
H A Dtest_glob.py14 def norm(self, *parts):
15 return os.path.normpath(os.path.join(self.tempdir, *parts))
17 def joins(self, *tuples):
18 return [os.path.join(self.tempdir, *parts) for parts in tuples]
20 def mktemp(self, *parts):
21 filename = self.norm(*parts)
27 def setUp(self):
28 self.tempdir = TESTFN + "_dir"
29 self.mktemp('a', 'D')
30 self
[all...]
/third_party/mesa3d/src/mapi/glapi/gen/
H A Dgl_XML.py83 def __init__(self):
88 self.name = "a"
98 self.license = "The license for this file is unspecified."
107 self.header_tag = None
115 self.undef_list = []
119 def Print(self, api):
120 self.printHeader()
121 self.printBody(api)
122 self.printFooter()
126 def printHeader(self)
[all...]
/third_party/python/Lib/
H A Dsmtpd.py105 def write(self, msg): pass
106 def flush(self): pass
130 def max_command_size_limit(self):
132 return max(self.command_size_limits.values())
134 return self.command_size_limit
136 def __init__(self, server, conn, addr, data_size_limit=DATA_SIZE_DEFAULT,
138 asynchat.async_chat.__init__(self, conn, map=map)
139 self.smtp_server = server
140 self.conn = conn
141 self
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dextensionmetadocgenerator.py18 def __init__(self, *args, **kwargs):
23 def __init__(self,
44 self.generator = generator
45 self.conventions = generator.genOpts.conventions
46 self.filename = filename
47 self.interface = interface
48 self.name = name
49 self.number = number
50 self.ext_type = ext_type
51 self
[all...]
/third_party/node/deps/v8/tools/testrunner/testproc/
H A Dprogress.py30 def __init__(self, max_failures):
31 super(ResultsTracker, self).__init__()
32 self._requirement = base.DROP_OUTPUT
34 self.failed = 0
35 self.remaining = 0
36 self.total = 0
37 self.max_failures = max_failures
39 def _on_next_test(self, test):
40 self.total += 1
41 self
[all...]
/third_party/python/Lib/xml/dom/
H A Dpulldom.py17 def __init__(self, documentFactory=None):
19 self.documentFactory = documentFactory
20 self.firstEvent = [None, None]
21 self.lastEvent = self.firstEvent
22 self.elementStack = []
23 self.push = self.elementStack.append
25 self.pop = self
[all...]
/third_party/python/Lib/tkinter/test/test_tkinter/
H A Dtest_geometry_managers.py17 def create2(self):
18 pack = tkinter.Toplevel(self.root, name='pack')
27 def test_pack_configure_after(self):
28 pack, a, b, c, d = self.create2()
29 with self.assertRaisesRegex(TclError, 'window "%s" isn\'t packed' % b):
31 with self.assertRaisesRegex(TclError, 'bad window path name ".foo"'):
37 self.assertEqual(pack.pack_slaves(), [a, b, c, d])
39 self.assertEqual(pack.pack_slaves(), [b, a, c, d])
41 self.assertEqual(pack.pack_slaves(), [b, a, c, d])
43 def test_pack_configure_anchor(self)
[all...]
/third_party/python/Modules/_io/
H A Dstringio.c49 static int _io_StringIO___init__(PyObject *self, PyObject *args, PyObject *kwargs);
51 #define CHECK_INITIALIZED(self) \
52 if (self->ok <= 0) { \
58 #define CHECK_CLOSED(self) \
59 if (self->closed) { \
65 #define ENSURE_REALIZED(self) \
66 if (realize(self) < 0) { \
75 resize_buffer(stringio *self, size_t size) in resize_buffer() argument
79 size_t alloc = self->buf_size; in resize_buffer()
82 assert(self in resize_buffer()
127 make_intermediate(stringio *self) make_intermediate() argument
143 realize(stringio *self) realize() argument
177 write_str(stringio *self, PyObject *obj) write_str() argument
277 _io_StringIO_getvalue_impl(stringio *self) _io_StringIO_getvalue_impl() argument
295 _io_StringIO_tell_impl(stringio *self) _io_StringIO_tell_impl() argument
315 _io_StringIO_read_impl(stringio *self, Py_ssize_t size) _io_StringIO_read_impl() argument
347 _stringio_readline(stringio *self, Py_ssize_t limit) _stringio_readline() argument
386 _io_StringIO_readline_impl(stringio *self, Py_ssize_t size) _io_StringIO_readline_impl() argument
397 stringio_iternext(stringio *self) stringio_iternext() argument
447 _io_StringIO_truncate_impl(stringio *self, Py_ssize_t size) _io_StringIO_truncate_impl() argument
485 _io_StringIO_seek_impl(stringio *self, Py_ssize_t pos, int whence) _io_StringIO_seek_impl() argument
534 _io_StringIO_write(stringio *self, PyObject *obj) _io_StringIO_write() argument
568 _io_StringIO_close_impl(stringio *self) _io_StringIO_close_impl() argument
583 stringio_traverse(stringio *self, visitproc visit, void *arg) stringio_traverse() argument
590 stringio_clear(stringio *self) stringio_clear() argument
597 stringio_dealloc(stringio *self) stringio_dealloc() argument
618 stringio *self; stringio_new() local
649 _io_StringIO___init___impl(stringio *self, PyObject *value, PyObject *newline_obj) _io_StringIO___init___impl() argument
765 _io_StringIO_readable_impl(stringio *self) _io_StringIO_readable_impl() argument
780 _io_StringIO_writable_impl(stringio *self) _io_StringIO_writable_impl() argument
795 _io_StringIO_seekable_impl(stringio *self) _io_StringIO_seekable_impl() argument
816 stringio_getstate(stringio *self, PyObject *Py_UNUSED(ignored)) stringio_getstate() argument
844 stringio_setstate(stringio *self, PyObject *state) stringio_setstate() argument
946 stringio_closed(stringio *self, void *context) stringio_closed() argument
953 stringio_line_buffering(stringio *self, void *context) stringio_line_buffering() argument
961 stringio_newlines(stringio *self, void *context) stringio_newlines() argument
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_query.py33 def __init__(self, dummy_entry):
34 self.entry = Var(value=dummy_entry)
35 self.entry_error = {'text': ''}
36 self.result = None
37 self.destroyed = False
38 def showerror(self, message):
39 self.entry_error['text'] = message
40 def destroy(self):
41 self.destroyed = True
43 def test_entry_ok_blank(self)
[all...]
H A Dtest_percolator.py11 def __init__(self):
12 Delegator.__init__(self, None)
14 def insert(self, *args):
15 self.insert_called_with = args
16 self.delegate.insert(*args)
18 def delete(self, *args):
19 self.delete_called_with = args
20 self.delegate.delete(*args)
22 def uppercase_insert(self, index, chars, tags=None):
24 self
[all...]
/third_party/python/Lib/unittest/test/
H A Dtest_async_case.py18 def __init__(self, ordering, enter_result=None):
19 self.ordering = ordering
20 self.enter_result = enter_result
22 async def __aenter__(self):
23 self.ordering.append('enter')
24 return self.enter_result
26 async def __aexit__(self, *exc_info):
27 self.ordering.append('exit')
33 async def __aexit__(self, *exc_info):
36 async def __aenter__(self)
[all...]
/third_party/python/Lib/test/test_asyncio/
H A Dtest_proactor_events.py35 def setUp(self):
37 self.loop = self.new_test_loop()
38 self.addCleanup(self.loop.close)
39 self.proactor = mock.Mock()
40 self.loop._proactor = self.proactor
41 self.protocol = test_utils.make_test_protocol(asyncio.Protocol)
42 self
[all...]
/kernel/linux/linux-6.6/tools/verification/dot2/
H A Ddot2c.py25 def __init__(self, file_path):
27 self.line_length = 100
29 def __buff_to_string(self, buff):
38 def __get_enum_states_content(self):
40 buff.append("\t%s%s = 0," % (self.initial_state, self.enum_suffix))
41 for state in self.states:
42 if state != self.initial_state:
43 buff.append("\t%s%s," % (state, self.enum_suffix))
44 buff.append("\tstate_max%s" % (self
[all...]
/third_party/mesa3d/src/broadcom/cle/
H A Dgen_pack_header.py97 def __init__(self, parser, attrs):
98 self.parser = parser
100 self.name = safe_name(attrs["name"]).lower()
103 self.start = int(attrs["start"][:-1]) * 8
105 self.start = int(attrs["start"])
110 self.start += 8
112 self.end = self.start + int(attrs["size"]) - 1
113 self.type = attrs["type"]
115 if self
[all...]
/third_party/node/tools/inspector_protocol/jinja2/
H A Druntime.py81 """The `self` in templates."""
83 def __init__(self, context):
84 self.__context = context
86 def __getitem__(self, name):
87 blocks = self.__context.blocks[name]
88 return BlockReference(name, self.__context, blocks, 0)
90 def __repr__(self):
92 self.__class__.__name__,
93 self.__context.name
157 def __init__(self, environmen
[all...]

Completed in 12 milliseconds

12345678910>>...179