Home
last modified time | relevance | path

Searched refs:_Call (Results 1 – 15 of 15) sorted by relevance

/third_party/python/Lib/unittest/test/testmock/
Dtesthelpers.py7 call, _Call, create_autospec, MagicMock,
93 kall = _Call()
94 self.assertEqual(kall, _Call())
95 self.assertEqual(kall, _Call(('',)))
96 self.assertEqual(kall, _Call(((),)))
97 self.assertEqual(kall, _Call(({},)))
98 self.assertEqual(kall, _Call(('', ())))
99 self.assertEqual(kall, _Call(('', {})))
100 self.assertEqual(kall, _Call(('', (), {})))
101 self.assertEqual(kall, _Call(('foo',)))
[all …]
Dtestmock.py13 NonCallableMagicMock, AsyncMock, _Call, _CallList,
2121 self.assertEqual(type(call.name), _Call)
2122 self.assertEqual(type(call.name().name), _Call)
2128 self.assertEqual(type(call.parent), _Call)
2129 self.assertEqual(type(call.parent().parent), _Call)
/third_party/node/deps/v8/tools/dev/
Dupdate-compile-commands.py35 def _Call(cmd, silent=False): function
54 code = _Call("gn gen %s" % build_dir)
57 _Call("ninja -C %s build.ninja" % build_dir)
87 _Call("autoninja -C out/x64.release torque-language-server")
93 _Call("autoninja -C out/x64.debug v8_generated_cc_files")
98 _Call("ps -e | grep compiler_proxy > /dev/null", silent=True) != 0):
99 _Call("%s/goma_ctl.py ensure_start" % gomadir)
Dgm.py207 def _Call(cmd, silent=False): function
247 _Call("notify-send '{}' '{}'".format(summary, body), silent=True)
352 code = _Call("gn gen %s" % path)
355 code = _Call("gn clean %s" % path)
361 return _Call("autoninja -C %s %s" % (path, targets))
374 _Call(cmdline)
381 _Call("%s/mkgrokdump > tools/v8heapconst.py" %
388 return _Call('"%s" ' % sys.executable +
509 _Call("pgrep -x compiler_proxy > /dev/null", silent=True) != 0):
510 _Call("%s/goma_ctl.py ensure_start" % GOMADIR)
Dgen-tags.py34 def _Call(cmd, silent=False): function
89 _Call("ctags --fields=+l -L " + gtags_filename)
/third_party/node/deps/v8/tools/
Drun-wasm-api-tests.py70 def _Call(cmd_list, silent=False): function
106 c = _Call([compiler[lang], "-c", language["cflags"], CFLAGS,
110 c = _Call([compiler["cc"], CFLAGS, compiler["ldflags"], obj_file,
115 c = _Call(["cd", self.tempdir, ";", exe_file])
/third_party/python/Lib/lib2to3/tests/
Dtest_util.py79 def _Call(self, name, args=None, prefix=None): member in Test_Call
97 self.assertStr(self._Call("A"), "A()")
98 self.assertStr(self._Call("b", kids[1]), "b(1,2,3)")
99 self.assertStr(self._Call("a.b().c", kids[2]), "a.b().c(1,3,2,4)")
100 self.assertStr(self._Call("d", kids[3], prefix=" "), " d(b, j)")
/third_party/python/Lib/unittest/
Dmock.py915 expected = self._call_matcher(_Call((args, kwargs), two=True))
985 expected = self._call_matcher(_Call((args, kwargs), two=True))
1117 _call = _Call((args, kwargs), two=True)
1128 self.mock_calls.append(_Call(('', args, kwargs)))
1136 _new_parent.method_calls.append(_Call((method_call_name, args, kwargs)))
1142 this_mock_call = _Call((mock_call_name, args, kwargs))
2194 _call = _Call((args, kwargs), two=True)
2259 expected = self._call_matcher(_Call((args, kwargs), two=True))
2280 expected = self._call_matcher(_Call((args, kwargs), two=True))
2429 class _Call(tuple): class
[all …]
/third_party/python/Misc/NEWS.d/
D3.6.1rc1.rst458 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
D3.5.4rc1.rst797 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
D3.5.2rc1.rst874 Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset
D3.6.0a1.rst1392 Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset
D3.9.0a1.rst2527 Fix `NonCallableMock._call_matcher` returning tuple instead of `_Call`
D3.7.0a1.rst3684 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
D3.8.0a1.rst309 Internal attributes' names of unittest.mock._Call and