Home
last modified time | relevance | path

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

123456

/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/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)
Dtest_sys_settrace.py95 def raises(): function
100 raises()
Dtest_argparse.py240 raises = tester.assertRaises
241 raises(ArgumentParserError, parser.parse_args, args)
2229 raises = self.assertRaises
2230 raises(TypeError, parser.add_mutually_exclusive_group, title='foo')
2236 raises = self.assertRaises
2237 raises(ValueError, add_argument, '--foo', required=True)
2238 raises(ValueError, add_argument, 'bar')
2239 raises(ValueError, add_argument, 'bar', nargs='+')
2240 raises(ValueError, add_argument, 'bar', nargs=1)
2241 raises(ValueError, add_argument, 'bar', nargs=argparse.PARSER)
/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:
Droute_addr.rst34 :raises: KeyError if address is not found.
/external/llvm/bindings/ocaml/irreader/
Dllvm_irreader.mli19 raises [Error msg] otherwise, where [msg] is a description of the error
/external/python/cpython2/Doc/c-api/
Diter.rst19 slot with logic that either invokes a :meth:`next` method or raises
Diterator.rst34 iteration ends when the sequence raises :exc:`IndexError` for the subscripting
/external/mesa3d/docs/specs/OLD/
DMESA_trace.spec42 Application-side implementation of these features raises namespace
/external/python/cpython2/Doc/library/
Dcontextlib.rst80 :meth:`__exit__` method of one of the nested managers raises an exception, any
95 raises an exception that is caught and suppressed by the :meth:`__exit__` method
Dcopy_reg.rst27 hence not valid as a constructor), raises :exc:`TypeError`.
Dcode.rst58 command is complete and valid; ``None`` if the command is incomplete; raises
60 raises :exc:`OverflowError` or :exc:`ValueError` if the command contains an
Dqueue.rst117 *timeout* is a positive number, it blocks at most *timeout* seconds and raises
137 raises the :exc:`Empty` exception if no item was available within that time.
Dbsddb.rst142 method raises :exc:`bsddb.error` if the database is empty.
162 opened with :func:`hashopen`). This method raises :exc:`bsddb.error` if the
Dasynchat.rst82 default method, which must be overridden, raises a
96 raises a :exc:`NotImplementedError` exception. The buffered input data
Ddatetime.rst267 Division by 0 raises :exc:`ZeroDivisionError`.
461 default scheme of comparing object addresses, date comparison normally raises
864 object addresses, datetime comparison normally raises :exc:`TypeError` if the
944 ``self.tzinfo.utcoffset(self)``, and raises an exception if the latter doesn't
952 ``self.tzinfo.dst(self)``, and raises an exception if the latter doesn't return
960 ``self.tzinfo.tzname(self)``, raises an exception if the latter doesn't return
1304 ``self.tzinfo.utcoffset(None)``, and raises an exception if the latter doesn't
1312 ``self.tzinfo.dst(None)``, and raises an exception if the latter doesn't return
1320 ``self.tzinfo.tzname(None)``, or raises an exception if the latter doesn't
1398 The default implementation of :meth:`utcoffset` raises
[all …]
Drestricted.rst33 the built-in :func:`open` function so that it raises an exception whenever the
/external/autotest/docs/
Dcoding-style.md153 @raises exception that could be raised if a certain condition occurs.
168 | @raises | Same as @raise. …
/external/autotest/server/cros/dynamic_suite/
Dsuite_unittest.py279 raises=False, suite_deps=[], suite=None, argument
332 if raises:
430 self.expect_job_scheduling(recorder, raises=True)
/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py1102 raises = self.assertRaises
1108 raises(IndexError, m.get_payload, 2)
2957 raises = self.assertRaises
2960 raises(UnicodeError, Header, x)
2962 raises(UnicodeError, h.append, x)
2987 raises = self.assertRaises
2989 raises(errors.HeaderParseError, decode_header, s)

123456