Home
last modified time | relevance | path

Searched refs:raise_exc (Results 1 – 25 of 108) sorted by relevance

12345

/dports/net-mgmt/py-arouteserver/arouteserver-1.12.0/pierky/arouteserver/
H A Dask.py38 def ask(self, text, options=None, default=None, raise_exc=False): argument
60 if raise_exc:
78 def ask_yes_no(self, text, default=None, raise_exc=False): argument
79 return self.ask(text, ["yes", "no"], default, raise_exc)
81 def ask_int(self, text, default=None, raise_exc=False): argument
82 answer_given, v = self.ask(text, None, default, raise_exc)
90 def ask_ipv4_addr(self, text, default=None, raise_exc=False): argument
91 answer_given, v = self.ask(text, None, default, raise_exc)
/dports/lang/cython-devel/cython-2b1e743/tests/run/
H A Dannotation_typing.pyx178 >>> exception_default(raise_exc=False)
180 >>> exception_default(raise_exc=True)
184 if raise_exc:
189 def call_exception_default(raise_exc=False): argument
191 >>> call_exception_default(raise_exc=False)
193 >>> call_exception_default(raise_exc=True)
197 return exception_default(raise_exc)
211 >>> exception_default_uint(raise_exc=True)
215 if raise_exc:
220 def call_exception_default_uint(raise_exc=False): argument
[all …]
/dports/lang/python311/Python-3.11.0a3/Python/
H A Dpytime.c450 if (raise_exc && (res1 < 0 || res2 < 0)) { in pytime_fromtimespec()
759 if (raise_exc && (res < 0 || res2 < 0)) { in pytime_as_timeval_struct()
813 if (raise_exc && (res < 0 || res2 < 0)) { in pytime_as_timespec()
837 assert(info == NULL || raise_exc); in py_get_system_clock()
885 if (raise_exc) { in py_get_system_clock()
919 if (raise_exc) { in py_get_system_clock()
1018 assert(info == NULL || raise_exc); in py_get_monotonic_clock()
1028 if (raise_exc && res < 0) { in py_get_monotonic_clock()
1077 if (raise_exc) { in py_get_monotonic_clock()
1104 if (raise_exc) { in py_get_monotonic_clock()
[all …]
/dports/www/py-paste/Paste-3.4.6/tests/
H A Dtest_registry.py41 def __init__(self, var, value, raise_exc=False): argument
44 self.raise_exc = raise_exc
49 if self.raise_exc:
50 raise self.raise_exc
258 wsgiapp = RegistryUsingApp(data[0], data[1], raise_exc=Exception())
266 wsgiapp = RegistryUsingApp(data[0], data[1], raise_exc=Exception())
274 wsgiapp = RegistryUsingApp(data[0][0], data[0][1], raise_exc=Exception())
283 wsgiapp = RegistryUsingApp(data[0][0], data[0][1], raise_exc=Exception())
294 wsgiapp = RegistryUsingApp(data[0][0], data[0][1], raise_exc=Exception())
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/Paste/tests/
H A Dtest_registry.py40 def __init__(self, var, value, raise_exc=False): argument
43 self.raise_exc = raise_exc
48 if self.raise_exc:
49 raise self.raise_exc
257 wsgiapp = RegistryUsingApp(data[0], data[1], raise_exc=Exception())
265 wsgiapp = RegistryUsingApp(data[0], data[1], raise_exc=Exception())
273 wsgiapp = RegistryUsingApp(data[0][0], data[0][1], raise_exc=Exception())
282 wsgiapp = RegistryUsingApp(data[0][0], data[0][1], raise_exc=Exception())
293 wsgiapp = RegistryUsingApp(data[0][0], data[0][1], raise_exc=Exception())
/dports/lang/micropython/micropython-1.17/py/
H A Dparsenum.c39 STATIC NORETURN void raise_exc(mp_obj_t exc, mp_lexer_t *lex) { in raise_exc() function
151 raise_exc(exc, lex); in mp_parse_num_integer()
155 raise_exc(exc, lex); in mp_parse_num_integer()
164 raise_exc(exc, lex); in mp_parse_num_integer()
347raise_exc(mp_obj_new_exception_msg(&mp_type_ValueError, MP_ERROR_TEXT("complex values not supporte… in mp_parse_num_decimal()
355raise_exc(mp_obj_new_exception_msg(&mp_type_ValueError, MP_ERROR_TEXT("invalid syntax for number")… in mp_parse_num_decimal()
358raise_exc(mp_obj_new_exception_msg(&mp_type_ValueError, MP_ERROR_TEXT("decimal numbers not support… in mp_parse_num_decimal()
H A Dscheduler.c66 void mp_handle_pending(bool raise_exc) { in mp_handle_pending() argument
77 if (raise_exc) { in mp_handle_pending()
152 void mp_handle_pending(bool raise_exc) { in mp_handle_pending() argument
156 if (raise_exc) { in mp_handle_pending()
/dports/devel/ORBit2/ORBit2-2.14.19/src/services/name/
H A Dorbit-name-server.c154 goto raise_exc; in impl_NamingContext_unbind()
173 raise_exc: in impl_NamingContext_unbind()
194 goto raise_exc; in impl_NamingContext_bind()
230 raise_exc: in impl_NamingContext_bind()
251 goto raise_exc; in impl_NamingContext_rebind()
278 raise_exc: in impl_NamingContext_rebind()
300 goto raise_exc; in impl_NamingContext_bind_context()
336 raise_exc: in impl_NamingContext_bind_context()
384 raise_exc: in impl_NamingContext_rebind_context()
427 raise_exc: in impl_NamingContext_resolve()
[all …]
/dports/lang/cython/Cython-0.29.24/tests/run/
H A Dannotation_typing.pyx175 def exception_default(raise_exc : cython.bint = False) -> cython.int:
177 >>> exception_default(raise_exc=False)
179 >>> exception_default(raise_exc=True)
183 if raise_exc:
188 def call_exception_default(raise_exc=False): argument
190 >>> call_exception_default(raise_exc=False)
192 >>> call_exception_default(raise_exc=True)
196 return exception_default(raise_exc)
/dports/devel/py-oslo.versionedobjects/oslo.versionedobjects-2.5.0/oslo_versionedobjects/tests/
H A Dtest_exception.py24 def raise_exc(self, context, exc, admin_password): member in TestWrapper
33 self.assertTrue(hasattr(test.raise_exc, '__wrapped__'))
44 test.raise_exc, context, exc, admin_password="xxx")
/dports/java/eclipse-pydev/eclipse-pydev-8.2.0/plugins/org.python.pydev.jython_8.2.0.202102211157/Lib/modjy/
H A Dmodjy_publish.py88 …self.raise_exc(ApplicationNotFound, "Attribute error application callable '%s' as no method '%s'" …
110 … self.raise_exc(ApplicationNotFound, "Failed to import app callable '%s': %s" % (name, str(aix)))
138 self.raise_exc(ApplicationNotFound, "Application filename not found: %s" % path)
140 self.raise_exc(NoCallable, "No callable named '%s' in %s" % (callable_name, path))
142 … self.raise_exc(NoCallable, "Error loading jython callable '%s': %s" % (callable_name, str(x)) )
H A Dmodjy.py101 self.raise_exc(mx.__class__, str(mx))
103 self.raise_exc(ApplicationException, str(x))
119 def raise_exc(self, exc_class, message): member in modjy_servlet
/dports/devel/tortoisehg/tortoisehg-5.9.3/tortoisehg/util/
H A Dthread2.py35 def raise_exc(self, exctype): member in Thread
42 self.raise_exc(SystemExit)
/dports/devel/py-ddtrace/ddtrace-0.56.1/tests/tracer/
H A Dtest_writer.py467 writer.flush_queue(raise_exc=True)
472 writer.flush_queue(raise_exc=True)
478 writer.flush_queue(raise_exc=True)
489 writer.flush_queue(raise_exc=True)
496 writer.flush_queue(raise_exc=True)
507 writer.flush_queue(raise_exc=True)
513 writer.flush_queue(raise_exc=True)
521 writer.flush_queue(raise_exc=False)
526 writer.flush_queue(raise_exc=True)
/dports/www/firefox/firefox-99.0/testing/web-platform/tests/tools/third_party/pytest/testing/io/
H A Dtest_saferepr.py66 def raise_exc(self, *args): member in test_baseexception.RaisingOnStrRepr
76 self.raise_exc("__str__")
79 self.raise_exc("__repr__")
/dports/mail/thunderbird/thunderbird-91.8.0/testing/web-platform/tests/tools/third_party/pytest/testing/io/
H A Dtest_saferepr.py66 def raise_exc(self, *args): member in test_baseexception.RaisingOnStrRepr
76 self.raise_exc("__str__")
79 self.raise_exc("__repr__")
/dports/www/firefox-esr/firefox-91.8.0/testing/web-platform/tests/tools/third_party/pytest/testing/io/
H A Dtest_saferepr.py66 def raise_exc(self, *args): member in test_baseexception.RaisingOnStrRepr
76 self.raise_exc("__str__")
79 self.raise_exc("__repr__")
/dports/devel/py-raven/raven-python-6.10.0/tests/contrib/django/
H A Dviews.py26 def raise_exc(request): function
40 return raise_exc(request)
/dports/www/py-turbogears2/TurboGears2-2.3.12/tests/test_stack/
H A Dtest_registry.py32 def __init__(self, var, value, raise_exc=False): argument
35 self.raise_exc = raise_exc
40 if self.raise_exc:
41 raise self.raise_exc
/dports/net-mgmt/py-arouteserver/arouteserver-1.12.0/pierky/arouteserver/commands/
H A Dconfigure.py93 answer_ok, answer = ask_func(*args, raise_exc=True, **kwargs)
103 def ask_list_of_ip_prefixes(self, text, raise_exc=False): argument
104 answer_given, v = self.ask.ask(text, None, None, raise_exc)
118 def ask_16bit_placeholder_asn(self, text, raise_exc=False, default=None): argument
119 answer_given, v = self.ask.ask_int(text, default, raise_exc)
/dports/devel/py-keystoneauth1/keystoneauth1-4.4.0/keystoneauth1/
H A Dadapter.py130 retriable_status_codes=None, raise_exc=None, argument
164 self.raise_exc = raise_exc
254 if self.raise_exc is not None:
255 kwargs.setdefault('raise_exc', self.raise_exc)
/dports/x11/py-pyscreenshot/pyscreenshot-0.5.1/pyscreenshot/
H A Dloader.py82 self.raise_exc()
88 def raise_exc(self): member in Loader
/dports/net/py-python-novaclient/python-novaclient-17.1.0/novaclient/
H A Dclient.py67 raise_exc = kwargs.pop('raise_exc', True)
71 raise_exc=False,
77 if raise_exc and resp.status_code >= 400:
/dports/databases/py-sqlite3/Python-3.8.12/Lib/test/
H A Dtest_contextlib_async.py426 async def raise_exc(exc): function
437 stack.push_async_callback(raise_exc, IndexError)
438 stack.push_async_callback(raise_exc, KeyError)
439 stack.push_async_callback(raise_exc, AttributeError)
441 stack.push_async_callback(raise_exc, ValueError)
/dports/databases/py-gdbm/Python-3.8.12/Lib/test/
H A Dtest_contextlib_async.py426 async def raise_exc(exc): function
437 stack.push_async_callback(raise_exc, IndexError)
438 stack.push_async_callback(raise_exc, KeyError)
439 stack.push_async_callback(raise_exc, AttributeError)
441 stack.push_async_callback(raise_exc, ValueError)

12345