Home
last modified time | relevance | path

Searched refs:raises (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/external/python/setuptools/setuptools/tests/
Dtest_setuptools.py68 with pytest.raises(ImportError):
70 with pytest.raises(ImportError):
194 with pytest.raises(DistutilsSetupError):
196 with pytest.raises(DistutilsSetupError):
198 with pytest.raises(DistutilsSetupError):
200 with pytest.raises(DistutilsSetupError):
202 with pytest.raises(DistutilsSetupError):
204 with pytest.raises(DistutilsSetupError):
207 with pytest.raises(DistutilsSetupError):
209 with pytest.raises(DistutilsSetupError):
[all …]
Dtest_build_clib.py22 with pytest.raises(DistutilsSetupError):
27 with pytest.raises(DistutilsSetupError):
32 with pytest.raises(DistutilsSetupError):
37 with pytest.raises(DistutilsSetupError):
Dtest_sandbox.py51 with pytest.raises(ValueError) as caught:
63 with pytest.raises(ValueError) as caught:
84 with pytest.raises(setuptools.sandbox.UnpickleableException) as caught:
100 with pytest.raises(setuptools.sandbox.UnpickleableException) as caught:
120 with pytest.raises(setuptools.sandbox.SandboxViolation) as caught:
Dtest_config.py59 with pytest.raises(NotImplementedError):
82 with pytest.raises(DistutilsFileError):
92 with pytest.raises(ImportError):
171 with pytest.raises(DistutilsOptionError):
290 with pytest.raises(DistutilsOptionError):
459 with pytest.raises(DistutilsOptionError):
/external/python/setuptools/pkg_resources/tests/
Dtest_resources.py90 with pytest.raises(VersionConflict):
154 with pytest.raises(pkg_resources.DistributionNotFound):
169 with pytest.raises(VersionConflict):
174 with pytest.raises(pkg_resources.DistributionNotFound):
187 with pytest.raises(VersionConflict) as vc:
320 with pytest.raises(pkg_resources.UnknownExtra):
333 with pytest.raises(VersionConflict) as vc:
358 with pytest.raises(VersionConflict) as vc:
413 with pytest.raises(ValueError):
449 with pytest.raises(ValueError):
[all …]
/external/fonttools/Tests/misc/
Dplistlib_test.py110 with pytest.raises(AttributeError):
113 with pytest.raises(AttributeError):
120 with pytest.raises(TypeError):
153 with pytest.raises(OverflowError):
289 with pytest.raises(TypeError):
293 with pytest.raises(TypeError):
352 with pytest.raises(ValueError):
377 with pytest.raises(ValueError):
391 with pytest.raises(ValueError):
393 with pytest.raises(ValueError):
[all …]
/external/fonttools/Tests/ttx/
Dttx_test.py321 with pytest.raises(SystemExit):
329 with pytest.raises(SystemExit):
347 with pytest.raises(getopt.GetoptError):
415 with pytest.raises(getopt.GetoptError):
425 with pytest.raises(ValueError):
470 with pytest.raises(getopt.GetoptError):
495 with pytest.raises(getopt.GetoptError):
500 with pytest.raises(getopt.GetoptError):
505 with pytest.raises(getopt.GetoptError):
510 with pytest.raises(getopt.GetoptError):
[all …]
/external/python/six/
Dtest_six.py83 py.test.raises(
324 py.test.raises(AttributeError, six.remove_move, "eggs")
340 py.test.raises(AttributeError, six.get_method_self, 42)
349 py.test.raises(AttributeError, six.get_method_function, hasattr)
367 py.test.raises(AttributeError, six.get_function_code, hasattr)
407 py.test.raises(StopIteration, six.advance_iterator, it)
443 py.test.raises(StopIteration, six.next, it)
444 py.test.raises(StopIteration, six.next, it)
492 py.test.raises(TypeError, u)
540 py.test.raises(Exception, six.int2byte, 256)
[all …]
/external/python/cpython3/Lib/test/
Dtest_string.py276 raises = self.assertRaises
278 raises(ValueError, s.substitute, dict(who='tim'))
280 raises(ValueError, s.substitute, dict(who='tim'))
282 raises(ValueError, s.substitute, dict(who='tim'))
286 raises(ValueError, s.substitute, dict(who='tim'))
288 raises(ValueError, s.substitute, dict(who='tim'))
439 raises = self.assertRaises
452 raises(TypeError, s.substitute, d, {})
453 raises(TypeError, s.safe_substitute, d, {})
460 raises = self.assertRaises
[all …]
Dtest_gettext.py391 raises = self.assertRaises
393 raises(ValueError, gettext.c2py, "os.chmod('/etc/passwd',0777)")
395 raises(ValueError, gettext.c2py, '"(eval(foo) && ""')
396 raises(ValueError, gettext.c2py, 'f"{os.system(\'sh\')}"')
398 raises(ValueError, gettext.c2py, 'n+'*10000 + 'n')
401 raises(ValueError, gettext.c2py, '('*100 + 'n' + ')'*100)
403 raises(ValueError, gettext.c2py, '('*10000 + 'n' + ')'*10000)
Dtest_random.py355 raises = partial(self.assertRaises, ValueError, self.gen.randrange)
357 raises(3, 3)
358 raises(-721)
359 raises(0, 100, -12)
361 raises(3.14159)
362 raises(0, 2.71828)
364 raises(0, 42, 0)
365 raises(0, 42, 3.14159)
/external/clang/bindings/python/tests/cindex/
Dtest_token_kind.py4 from nose.tools import raises
14 @raises(ValueError)
20 @raises(ValueError)
Dtest_type.py6 from nose.tools import raises
182 @raises(TypeError)
194 @raises(IndexError)
203 @raises(IndexError)
212 @raises(Exception)
271 @raises(Exception)
/external/tensorflow/tensorflow/python/kernel_tests/
Done_hot_op_test.py35 raises=None, argument
38 if raises is not None:
39 with self.assertRaises(raises):
51 def _testBothOneHot(self, truth, expected_err_re=None, raises=None, **inputs): argument
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/python/cpython2/Lib/test/
Dtest_string.py298 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'))
Dtest_gettext.py322 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/python/dateutil/dateutil/test/
Dtest_isoparser.py262 with pytest.raises(exception):
281 with pytest.raises(exception):
289 with pytest.raises(ValueError):
333 with pytest.raises(exception):
387 with pytest.raises(exception):
470 with pytest.raises(exception):
481 with pytest.raises(exception):
/external/fonttools/Tests/ttLib/tables/
D_g_l_y_f_test.py73 with pytest.raises(TypeError) as excinfo:
83 with pytest.raises(TypeError) as excinfo:
97 with pytest.raises(TypeError) as excinfo:
106 with pytest.raises(TypeError) as excinfo:
/external/fonttools/Tests/
Dunicodedata_test.py180 with pytest.raises(KeyError):
195 with pytest.raises(KeyError):
239 with pytest.raises(ValueError, match="invalid OpenType tag"):
248 with pytest.raises(KeyError):
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/ocaml/bitreader/
Dllvm_bitreader.mli19 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/llvm/bindings/ocaml/bitreader/
Dllvm_bitreader.mli19 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/
Dllvm_bitreader.mli19 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/libnl/python/doc/
Dcore.rst37 :raises: KeyError if attribute is unknown
38 :raises: ImmutableError if attribute is not mutable
76 :raises: ValueError if no filter is specified
156 # raises:
/external/python/cpython3/Doc/library/
Dasyncio-future.rst94 :meth:`set_exception` method, this method raises the exception.
96 If the Future has been *cancelled*, this method raises
99 If the Future's result isn't yet available, this method raises
181 If the Future has been *cancelled*, this method raises a
184 If the Future isn't *done* yet, this method raises an
/external/python/cpython2/Misc/NEWS.d/next/Library/
D2018-01-20-17-15-34.bpo-32502.OXJfn7.rst1 uuid.uuid1 no longer raises an exception if a 64-bit hardware address is

12345678910>>...16