/external/clang/bindings/python/tests/cindex/ |
test_token_kind.py | 4 from nose.tools import raises 14 @raises(ValueError) 20 @raises(ValueError) 22 """Ensure trying to fetch an unknown value raises."""
|
test_type.py | 6 from nose.tools import raises 182 @raises(TypeError) 194 @raises(IndexError) 196 """Ensure that negative indexes on argument_types Raises an IndexError.""" 203 @raises(IndexError) 212 @raises(Exception) 214 """Ensure that obtaining argument_types on a Type without them raises.""" 271 @raises(Exception) 273 """Ensure Type.element_type raises if type doesn't have elements."""
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_pep292.py | 81 raises = self.assertRaises
83 raises(ValueError, s.substitute, dict(who='tim'))
85 raises(ValueError, s.substitute, dict(who='tim'))
87 raises(ValueError, s.substitute, dict(who='tim'))
149 raises = self.assertRaises
162 raises(TypeError, s.substitute, d, {})
163 raises(TypeError, s.safe_substitute, d, {})
167 raises = self.assertRaises
172 raises(KeyError, s.substitute)
176 raises(ValueError, s.substitute, dict(gift='bud', who='you')) [all...] |
test_gettext.py | 290 raises = self.assertRaises
292 raises(ValueError, gettext.c2py, "os.chmod('/etc/passwd',0777)")
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_pep292.py | 81 raises = self.assertRaises 83 raises(ValueError, s.substitute, dict(who='tim')) 85 raises(ValueError, s.substitute, dict(who='tim')) 87 raises(ValueError, s.substitute, dict(who='tim')) 149 raises = self.assertRaises 162 raises(TypeError, s.substitute, d, {}) 163 raises(TypeError, s.safe_substitute, d, {}) 167 raises = self.assertRaises 172 raises(KeyError, s.substitute) 176 raises(ValueError, s.substitute, dict(gift='bud', who='you') [all...] |
test_gettext.py | 290 raises = self.assertRaises 292 raises(ValueError, gettext.c2py, "os.chmod('/etc/passwd',0777)")
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_pep292.py | 81 raises = self.assertRaises 83 raises(ValueError, s.substitute, dict(who='tim')) 85 raises(ValueError, s.substitute, dict(who='tim')) 87 raises(ValueError, s.substitute, dict(who='tim')) 149 raises = self.assertRaises 162 raises(TypeError, s.substitute, d, {}) 163 raises(TypeError, s.safe_substitute, d, {}) 167 raises = self.assertRaises 172 raises(KeyError, s.substitute) 176 raises(ValueError, s.substitute, dict(gift='bud', who='you') [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_pep292.py | 81 raises = self.assertRaises 83 raises(ValueError, s.substitute, dict(who='tim')) 85 raises(ValueError, s.substitute, dict(who='tim')) 87 raises(ValueError, s.substitute, dict(who='tim')) 149 raises = self.assertRaises 162 raises(TypeError, s.substitute, d, {}) 163 raises(TypeError, s.safe_substitute, d, {}) 167 raises = self.assertRaises 172 raises(KeyError, s.substitute) 176 raises(ValueError, s.substitute, dict(gift='bud', who='you') [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pep292.py | 81 raises = self.assertRaises 83 raises(ValueError, s.substitute, dict(who='tim')) 85 raises(ValueError, s.substitute, dict(who='tim')) 87 raises(ValueError, s.substitute, dict(who='tim')) 149 raises = self.assertRaises 162 raises(TypeError, s.substitute, d, {}) 163 raises(TypeError, s.safe_substitute, d, {}) 167 raises = self.assertRaises 172 raises(KeyError, s.substitute) 176 raises(ValueError, s.substitute, dict(gift='bud', who='you') [all...] |
/external/llvm/bindings/ocaml/bitreader/ |
llvm_bitreader.mli | 19 raises [Error msg] otherwise, where [msg] is a description of the error 25 raises [Error msg] otherwise, where [msg] is a description of the error
|
/external/swiftshader/third_party/LLVM/bindings/ocaml/bitreader/ |
llvm_bitreader.mli | 19 raises [Error msg] otherwise, where [msg] is a description of the error 26 raises [Error msg] otherwise, where [msg] is a description of the error
|
/external/python/cpython3/Lib/test/ |
test_string.py | 267 raises = self.assertRaises 269 raises(ValueError, s.substitute, dict(who='tim')) 271 raises(ValueError, s.substitute, dict(who='tim')) 273 raises(ValueError, s.substitute, dict(who='tim')) 392 raises = self.assertRaises 405 raises(TypeError, s.substitute, d, {}) 406 raises(TypeError, s.safe_substitute, d, {}) 413 raises = self.assertRaises 418 raises(KeyError, s.substitute) 422 raises(ValueError, s.substitute, dict(gift='bud', who='you') [all...] |
test_gettext.py | 390 raises = self.assertRaises 392 raises(ValueError, gettext.c2py, "os.chmod('/etc/passwd',0777)") 394 raises(ValueError, gettext.c2py, '"(eval(foo) && ""') 395 raises(ValueError, gettext.c2py, 'f"{os.system(\'sh\')}"') 397 raises(ValueError, gettext.c2py, 'n+'*10000 + 'n') 400 raises(ValueError, gettext.c2py, '('*100 + 'n' + ')'*100) 402 raises(ValueError, gettext.c2py, '('*10000 + 'n' + ')'*10000)
|
test_random.py | 55 # os.urandom() so that it raises the exception expected when the 340 raises = partial(self.assertRaises, ValueError, self.gen.randrange) 342 raises(3, 3) 343 raises(-721) 344 raises(0, 100, -12) 346 raises(3.14159) 347 raises(0, 2.71828) 349 raises(0, 42, 0) 350 raises(0, 42, 3.14159) [all...] |
/external/llvm/bindings/ocaml/irreader/ |
llvm_irreader.mli | 19 raises [Error msg] otherwise, where [msg] is a description of the error
|
/external/python/cpython2/Lib/test/ |
test_string.py | 298 raises = self.assertRaises 300 raises(ValueError, s.substitute, dict(who='tim')) 302 raises(ValueError, s.substitute, dict(who='tim')) 304 raises(ValueError, s.substitute, dict(who='tim')) 403 raises = self.assertRaises 416 raises(TypeError, s.substitute, d, {}) 417 raises(TypeError, s.safe_substitute, d, {}) 424 raises = self.assertRaises 429 raises(KeyError, s.substitute) 433 raises(ValueError, s.substitute, dict(gift='bud', who='you') [all...] |
test_gettext.py | 322 raises = self.assertRaises 324 raises(ValueError, gettext.c2py, "os.chmod('/etc/passwd',0777)") 326 raises(ValueError, gettext.c2py, '"(eval(foo) && ""') 327 raises(ValueError, gettext.c2py, 'f"{os.system(\'sh\')}"') 329 raises(ValueError, gettext.c2py, 'n+'*10000 + 'n') 332 raises(ValueError, gettext.c2py, '('*100 + 'n' + ')'*100) 334 raises(ValueError, gettext.c2py, '('*10000 + 'n' + ')'*10000)
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
one_hot_op_test.py | 35 raises=None, 38 if raises is not None: 39 with self.assertRaises(raises): 51 def _testBothOneHot(self, truth, expected_err_re=None, raises=None, **inputs): 52 self._testOneHot(truth, True, expected_err_re, raises, **inputs) 53 self._testOneHot(truth, False, expected_err_re, raises, **inputs) 398 raises=TypeError) 413 raises=TypeError) 421 raises=TypeError)
|
/external/autotest/venv/lucifer/ |
autotest_unittest.py | 57 with pytest.raises(ImportError):
|
eventlib_unittest.py | 73 with pytest.raises(_FakeError): 90 """Event handler for testing; raises."""
|
/external/autotest/client/cros/ |
ec.py | 110 @raises error.TestError if regexp fails to match. 139 @raises error.TestError if fails to read sensor. 251 @raises error.TestError if ... 373 @raises error.TestError if ...
|
/external/mesa3d/docs/specs/OLD/ |
MESA_trace.spec | 42 Application-side implementation of these features raises namespace
|
/prebuilts/go/darwin-x86/test/fixedbugs/ |
issue13160.go | 17 // Allocate more Ps than processors. This raises
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
issue13160.go | 17 // Allocate more Ps than processors. This raises
|
/external/devlib/devlib/module/ |
cpufreq.py | 86 :raises: TargetError if governor is not supported by the CPU, or if, 144 :raises: TargetError if governor specified is not a valid governor name, or if 198 :raises: TargetError if for some reason the frequency could not be read. 218 :raises: TargetError if the frequency is not supported by the CPU, or if, for 220 :raises: ValueError if ``frequency`` is not an integer. 245 :raises: TargetError if for some reason the frequency could not be read. 267 :raises: TargetError if the frequency is not supported by the CPU, or if, for 269 :raises: ValueError if ``frequency`` is not an integer. 297 :raises: TargetError if for some reason the frequency could not be read. 316 :raises: TargetError if the frequency is not supported by the CPU, or if, fo [all...] |