Home
last modified time | relevance | path

Searched refs:self (Results 201 - 225 of 4463) sorted by relevance

12345678910>>...179

/third_party/node/deps/v8/tools/release/
H A Dcreate_release.py19 def RunStep(self):
20 self.Git("fetch origin +refs/heads/*:refs/heads/*")
21 self.GitCheckout("origin/main")
22 self.DeleteBranch("work-branch")
28 def RunStep(self):
29 self["push_hash"] = (self._options.revision or
30 self.GitLog(n=1, format="%H", branch="origin/main"))
31 assert self["push_hash"]
32 print("Release revision %s" % self["push_has
[all...]
H A Droll_merge.py41 def RunStep(self):
42 if os.path.exists(self.Config("ALREADY_MERGING_SENTINEL_FILE")):
43 if self._options.force:
44 os.remove(self.Config("ALREADY_MERGING_SENTINEL_FILE"))
45 elif self._options.step == 0: # pragma: no cover
46 self.Die("A merge is already in progress")
47 open(self.Config("ALREADY_MERGING_SENTINEL_FILE"), "a").close()
49 self.InitialEnvironmentChecks(self.default_cwd)
50 if self
[all...]
/kernel/uniproton/
H A Dbuild.py39 def get_config(self, cpu_type, cpu_plat):
40 self.compile_mode = get_compile_mode()
41 self.lib_type, self.plam_type, self.hcc_path, self.kconf_dir, self.system, self.core = get_cpu_info(cpu_type, cpu_plat, self.build_machine_platform)
42 if not self
[all...]
/third_party/python/Lib/test/
H A Dtest_bisect.py12 def __init__(self, start, stop):
13 self.start = start
14 self.stop = stop
15 self.last_insert = None
17 def __len__(self):
18 return self.stop - self.start
20 def __getitem__(self, idx):
21 n = self.stop - self
[all...]
H A Dtest_bz2.py82 def setUp(self):
83 fd, self.filename = tempfile.mkstemp()
86 def tearDown(self):
87 unlink(self.filename)
93 def createTempFile(self, streams=1, suffix=b""):
94 with open(self.filename, "wb") as f:
95 f.write(self.DATA * streams)
98 def testBadArgs(self):
99 self.assertRaises(TypeError, BZ2File, 123.456)
100 self
[all...]
H A Dtest_dbm_ndbm.py11 def setUp(self):
12 self.filename = os_helper.TESTFN
13 self.d = dbm.ndbm.open(self.filename, 'c')
14 self.d.close()
16 def tearDown(self):
18 os_helper.unlink(self.filename + suffix)
20 def test_keys(self):
21 self.d = dbm.ndbm.open(self
[all...]
H A Dtest_complex.py25 def assertAlmostEqual(self, a, b):
28 unittest.TestCase.assertAlmostEqual(self, a.real, b.real)
29 unittest.TestCase.assertAlmostEqual(self, a.imag, b.imag)
31 unittest.TestCase.assertAlmostEqual(self, a.real, b)
32 unittest.TestCase.assertAlmostEqual(self, a.imag, 0.)
35 unittest.TestCase.assertAlmostEqual(self, a, b.real)
36 unittest.TestCase.assertAlmostEqual(self, 0., b.imag)
38 unittest.TestCase.assertAlmostEqual(self, a, b)
40 def assertCloseAbs(self, x, y, eps=1e-9):
50 self
[all...]
H A Dtest_queue.py27 def __init__(self, fn, args):
28 self.fn = fn
29 self.args = args
30 self.startedEvent = threading.Event()
31 threading.Thread.__init__(self)
33 def run(self):
41 # progress as soon as we call self.fn()).
43 self.startedEvent.set()
44 self.fn(*self
[all...]
H A Dtest_gettext.py119 def setUp(self):
120 self.addCleanup(os_helper.rmtree, os.path.split(LOCALEDIR)[0])
133 self.env = self.enterContext(os_helper.EnvironmentVarGuard())
134 self.env['LANGUAGE'] = 'xx'
146 def setUp(self):
147 GettextBaseTest.setUp(self)
148 self.localedir = os.curdir
149 self.mofile = MOFILE
150 gettext.install('gettext', self
[all...]
/third_party/python/Lib/
H A Dfileinput.py184 def __init__(self, files=None, inplace=False, backup="", *,
197 self._files = files
198 self._inplace = inplace
199 self._backup = backup
200 self._savestdout = None
201 self._output = None
202 self._filename = None
203 self._startlineno = 0
204 self._filelineno = 0
205 self
[all...]
H A Dsymtable.py22 def __init__(self):
23 self.__memo = weakref.WeakValueDictionary()
25 def new(self, table, filename):
32 def __call__(self, table, filename):
34 obj = self.__memo.get(key, None)
36 obj = self.__memo[key] = self.new(table, filename)
44 def __init__(self, raw_table, filename):
45 self._table = raw_table
46 self
[all...]
H A Dplistlib.py78 def __init__(self, data):
85 self.data = data
87 def __index__(self):
88 return self.data
90 def __repr__(self):
91 return "%s(%s)" % (self.__class__.__name__, repr(self.data))
93 def __reduce__(self):
94 return self.__class__, (self
[all...]
/third_party/python/Lib/idlelib/
H A Dhelp.py51 def __init__(self, text):
52 HTMLParser.__init__(self, convert_charrefs=True)
53 self.text = text # Text widget we're rendering into.
54 self.tags = '' # Current block level text tags to apply.
55 self.chartags = '' # Current character level text tags.
56 self.show = False # Exclude html page navigation.
57 self.hdrlink = False # Exclude html header links.
58 self.level = 0 # Track indentation level.
59 self.pre = False # Displaying preformatted text?
60 self
[all...]
/third_party/vixl/tools/test_generator/
H A Dgenerator.py41 def __init__(self, operand_list):
42 self.operand_list = operand_list
44 def __iter__(self):
45 return iter(self.operand_list)
47 def unwrap(self):
62 return itertools.chain(*self.operand_list)
64 def ExcludeVariants(self, type_name, variant_to_exclude):
70 self)
77 def GetNames(self):
81 return [operand.name for operand in self
[all...]
/third_party/python/Lib/multiprocessing/
H A Dqueues.py37 def __init__(self, maxsize=0, *, ctx):
41 self._maxsize = maxsize
42 self._reader, self._writer = connection.Pipe(duplex=False)
43 self._rlock = ctx.Lock()
44 self._opid = os.getpid()
46 self._wlock = None
48 self._wlock = ctx.Lock()
49 self._sem = ctx.BoundedSemaphore(maxsize)
51 self
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_pyshell.py13 def test_restart_line_wide(self):
14 eq = self.assertEqual
18 with self.subTest(file=file, bar=bar):
24 def test_restart_line_narrow(self):
27 with self.subTest(width=width):
28 self.assertEqual(pyshell.restart_line(width, ''), expect)
29 self.assertEqual(pyshell.restart_line(taglen+2, ''), expect+' =')
48 def test_init(self):
49 psfl = pyshell.PyShellFileList(self.root)
50 self
[all...]
/third_party/python/Lib/test/test_importlib/
H A Dtest_compatibilty_files.py16 def package(self):
25 def files(self):
26 return resources.files(self.package)
28 def test_spec_path_iter(self):
29 self.assertEqual(
30 sorted(path.name for path in self.files.iterdir()),
34 def test_child_path_iter(self):
35 self.assertEqual(list((self.files / 'a').iterdir()), [])
37 def test_orphan_path_iter(self)
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/
H A Dmacro_checker_file.py174 def lineToBlockType(self, line):
230 def __init__(self, checker, filename, enabled_messages, stream_maker):
241 self.checker = checker
242 self.filename = filename
243 self.stream_maker = stream_maker
244 self.enabled_messages = enabled_messages
245 self.missing_validity_suppressions = set(
246 self.getMissingValiditySuppressions())
248 self.logger = logging.getLogger(__name__)
249 self
[all...]
/third_party/skia/infra/bots/recipe_modules/vars/
H A Dapi.py18 def setup(self):
23 if self.m.path.c.base_paths['start_dir'][-1] == 'k': # pragma: nocover
24 self.m.path.c.base_paths['start_dir'] = (
25 self.m.path.c.base_paths['start_dir'][:-1])
28 self.builder_name = self.m.properties['buildername']
30 self.workdir = self.m.path['start_dir']
33 self.build_dir = self
[all...]
/third_party/astc-encoder/Test/
H A Dastc_test_functional.py122 def __init__(self, *args, **kwargs):
126 self.binary = encoder.binary
128 def setUp(self):
134 self.tempDir = tempfile.TemporaryDirectory()
136 def tearDown(self):
142 self.tempDir.cleanup()
143 self.tempDir = None
180 def get_tmp_image_path(self, profile, mode):
198 tmpFile, tmpPath = tempfile.mkstemp(mode, dir=self.tempDir.name)
226 tmpFile, tmpPath = tempfile.mkstemp(suffix, dir=self
[all...]
/third_party/jinja2/
H A Dparser.py52 self,
59 self.environment = environment
60 self.stream = environment._tokenize(source, name, filename, state)
61 self.name = name
62 self.filename = filename
63 self.closed = False
64 self.extensions: t.Dict[
69 self.extensions[tag] = extension.parse
70 self._last_identifier = 0
71 self
[all...]
/third_party/node/deps/v8/tools/mb/
H A Dmb.py81 def __init__(self):
82 self.chromium_src_dir = CHROMIUM_SRC_DIR
83 self.default_config = os.path.join(self.chromium_src_dir, 'infra', 'mb',
85 self.default_isolate_map = os.path.join(self.chromium_src_dir, 'infra',
87 self.executable = sys.executable
88 self.platform = sys.platform
89 self.sep = os.sep
90 self
[all...]
/third_party/python/Lib/unittest/test/testmock/
H A Dtestmagicmethods.py11 def test_deleting_magic_methods(self):
13 self.assertFalse(hasattr(mock, '__getitem__'))
16 self.assertTrue(hasattr(mock, '__getitem__'))
19 self.assertFalse(hasattr(mock, '__getitem__'))
22 def test_magicmock_del(self):
26 self.assertRaises(TypeError, lambda: mock['foo'])
32 self.assertRaises(TypeError, lambda: mock['foo'])
35 def test_magic_method_wrapping(self):
37 def f(self, name):
38 return self, 'fis
[all...]
/third_party/mesa3d/src/mapi/glapi/gen/
H A DglX_XML.py35 def create_function(self, element, context):
38 def create_enum(self, element, context, category):
41 def create_api(self):
42 return glx_api(self)
46 def __init__(self, element, context, category):
47 gl_XML.gl_enum.__init__(self, element, context, category)
49 self.functions = {}
58 c = self.default_count
67 if n not in self.functions:
68 self
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dcgenerator.py21 def __init__(self,
92 GeneratorOptions.__init__(self, **kwargs)
94 self.prefixText = prefixText
97 self.genFuncPointers = genFuncPointers
100 self.protectFile = protectFile
103 self.protectFeature = protectFeature
106 self.protectProto = protectProto
109 self.protectProtoStr = protectProtoStr
112 self.protectExtensionProto = protectExtensionProto
115 self
[all...]

Completed in 20 milliseconds

12345678910>>...179