Home
last modified time | relevance | path

Searched refs:RuntimeError (Results 1 – 25 of 965) sorted by relevance

12345678910>>...39

/external/tensorflow/tensorflow/python/training/
Dcoordinator_test.py40 except RuntimeError as e:
157 with self.assertRaisesRegexp(RuntimeError, "threads still running"):
187 args=(coord, ev_1, ev_2, RuntimeError("First"), False)),
190 args=(coord, ev_2, None, RuntimeError("Too late"), False))
197 with self.assertRaisesRegexp(RuntimeError, "First"):
207 args=(coord, ev_1, ev_2, RuntimeError("First"), True)),
210 args=(coord, ev_2, None, RuntimeError("Too late"), True))
216 with self.assertRaisesRegexp(RuntimeError, "First"):
255 args=(coord, ev_1, ev_2, RuntimeError("First"))),
258 args=(coord, ev_2, None, RuntimeError("Too late")))
[all …]
/external/python/cpython2/Lib/test/
Dtest_iterlen.py85 self.assertRaises(RuntimeError, it.next)
204 raise RuntimeError('hello')
209 raise RuntimeError('hello')
219 self.assertRaises(RuntimeError, list, BadLen())
220 self.assertRaises(RuntimeError, list, BadLengthHint())
221 self.assertRaises(RuntimeError, [].extend, BadLen())
222 self.assertRaises(RuntimeError, [].extend, BadLengthHint())
223 self.assertRaises(RuntimeError, zip, BadLen())
224 self.assertRaises(RuntimeError, zip, BadLengthHint())
225 self.assertRaises(RuntimeError, filter, None, BadLen())
[all …]
Dtest_call.py38 raise RuntimeError
67 raise RuntimeError
75 raise RuntimeError
83 raise RuntimeError
106 raise RuntimeError
117 raise RuntimeError
Dtest_isinstance.py46 raise RuntimeError
59 self.assertRaises(RuntimeError, isinstance, I(), C())
68 raise RuntimeError
71 self.assertRaises(RuntimeError, isinstance, I(), C())
94 raise RuntimeError
99 self.assertRaises(RuntimeError, issubclass, C(), S())
120 raise RuntimeError
123 self.assertRaises(RuntimeError, issubclass, B, C())
252 self.assertRaises(RuntimeError, blowstack, issubclass, str, str)
257 self.assertRaises(RuntimeError, blowstack, isinstance, '', str)
Dtest_richcmp.py201 def __cmp__(self_, other): raise RuntimeError, "expected"
207 self.assertRaises(RuntimeError, cmp, a, b)
232 self.assertRaises(RuntimeError, operator.eq, a, b)
233 self.assertRaises(RuntimeError, operator.ne, a, b)
234 self.assertRaises(RuntimeError, operator.lt, a, b)
235 self.assertRaises(RuntimeError, operator.le, a, b)
236 self.assertRaises(RuntimeError, operator.gt, a, b)
237 self.assertRaises(RuntimeError, operator.ge, a, b)
244 self.assertRaises(RuntimeError, operator.lt, a, b)
245 self.assertRaises(RuntimeError, operator.le, a, b)
[all …]
Dtest_with.py62 raise RuntimeError("Context is not reentrant")
163 raise RuntimeError("Enter threw")
172 self.assertRaises(RuntimeError, shouldThrow)
180 raise RuntimeError(42)
184 self.assertRaises(RuntimeError, shouldThrow)
187 TEST_EXCEPTION = RuntimeError("test exception")
358 self.assertRaises(RuntimeError, shouldThrow)
383 self.assertRaises(RuntimeError, shouldThrow)
401 self.assertRaises(RuntimeError, shouldThrow)
419 self.assertRaises(RuntimeError, shouldThrow)
[all …]
/external/python/cpython2/Lib/json/tests/
Dtest_recursion.py72 with self.assertRaises(RuntimeError):
74 with self.assertRaises(RuntimeError):
76 with self.assertRaises(RuntimeError):
79 with self.assertRaises(RuntimeError):
81 with self.assertRaises(RuntimeError):
83 with self.assertRaises(RuntimeError):
91 with self.assertRaises(RuntimeError):
93 with self.assertRaises(RuntimeError):
103 with self.assertRaises(RuntimeError):
/external/mesa3d/src/mapi/glapi/gen/
Dtypeexpr.py123 … raise RuntimeError("create_initial_types must be called before creating type_expression objects.")
157 raise RuntimeError("Invalid type expression (dangling pointer)")
160 … raise RuntimeError("Invalid type expression (signed / unsigned applied to pointer)")
167 …raise RuntimeError('Invalid type expression (garbage after pointer qualifier -> "%s")' % (self.ori…
175 raise RuntimeError("Invalid type expression (both signed and unsigned specified)")
179 raise RuntimeError("Invalid type expression (dangling const)")
182 raise RuntimeError("Invalid type expression (dangling signed)")
185 raise RuntimeError("Invalid type expression (dangling unsigned)")
196 raise RuntimeError('Unknown base type "%s".' % (type_name))
/external/python/cpython3/Lib/test/
Dtest_isinstance.py44 raise RuntimeError
57 self.assertRaises(RuntimeError, isinstance, I(), C())
66 raise RuntimeError
69 self.assertRaises(RuntimeError, isinstance, I(), C())
88 raise RuntimeError
92 self.assertRaises(RuntimeError, isinstance, c, bool)
96 self.assertRaises(RuntimeError, isinstance, c, D)
106 raise RuntimeError
111 self.assertRaises(RuntimeError, issubclass, C(), S())
132 raise RuntimeError
[all …]
Dtest_iterlen.py74 self.assertRaises(RuntimeError, next, it)
192 raise RuntimeError('hello')
200 raise RuntimeError('hello')
214 self.assertRaises(RuntimeError, list, BadLen())
215 self.assertRaises(RuntimeError, list, BadLengthHint())
216 self.assertRaises(RuntimeError, [].extend, BadLen())
217 self.assertRaises(RuntimeError, [].extend, BadLengthHint())
219 self.assertRaises(RuntimeError, b.extend, BadLen())
220 self.assertRaises(RuntimeError, b.extend, BadLengthHint())
Dtest_with.py61 raise RuntimeError("Context is not reentrant")
166 raise RuntimeError("Enter threw")
175 self.assertRaises(RuntimeError, shouldThrow)
183 raise RuntimeError(42)
187 self.assertRaises(RuntimeError, shouldThrow)
192 self.TEST_EXCEPTION = RuntimeError("test exception")
363 self.assertRaises(RuntimeError, shouldThrow)
388 self.assertRaises(RuntimeError, shouldThrow)
406 self.assertRaises(RuntimeError, shouldThrow)
424 self.assertRaises(RuntimeError, shouldThrow)
[all …]
/external/autotest/server/cros/ap_configurators/
DbelkinF9K1102_ap_configurator.py31 raise RuntimeError('Got %s error. You should click the generate '
34 raise RuntimeError('Unknown alert dialog' + alert.text)
89 raise RuntimeError('Invalid page number passed. Number of pages '
115 raise RuntimeError('We got a Duplicate Admin error.')
117 raise RuntimeError(str(e))
134 raise RuntimeError('We got a NoSuchElementException: ' + str(e))
155 raise RuntimeError('We did not save the page. '
206 raise RuntimeError('The mode %d not supported by router %s. ',
220 raise RuntimeError('Invalid band sent %s' % band)
Dnetgear_WNDR_dual_band_configurator.py30 raise RuntimeError('Wrong mode selected. %s' % text)
33 raise RuntimeError('%s. Please change the SSID of one band' % text)
43 raise RuntimeError('We have an unhandled alert on AP %s: %s' %
93 raise RuntimeError('Invalid page number passed. Number of pages '
138 raise RuntimeError('Unsupported mode passed.')
188 raise RuntimeError('Invalid band sent %s' % band)
222 raise RuntimeError('We got an exception: "%s". Check the mode. '
257 raise RuntimeError('For WPA-PSK the mode should be 54Mbps. %s' % e)
DbelkinF9K1105_ap_configurator.py28 raise RuntimeError('Got %s error. You should click the generate '
31 raise RuntimeError('Unknown alert dialog' + alert.text)
86 raise RuntimeError('Invalid page number passed. Number of pages '
113 raise RuntimeError('We got the Duplicate admin message. '
137 raise RuntimeError('We could not load the page ' + page_url +
147 raise RuntimeError('Incorrect password error: '
179 raise RuntimeError("We did not save the changes because we "
229 raise RuntimeError('The mode %d not supported by router %s. ',
243 raise RuntimeError('Invalid band sent %s' % band)
Dtrendnet692gr_ap_configurator.py26 raise RuntimeError(text)
81 raise RuntimeError('Invalid page number passed. Number of pages'
92 raise RuntimeError('Invalid page number passed. Number of pages'
96 raise RuntimeError('Incorrect band band = %s' % self.current_band)
132 raise RuntimeError('The mode selected %d is not supported by router'
144 raise RuntimeError('Invalid band sent %s' % band)
Dmedialink_ap_configurator.py30 raise RuntimeError('We got an alert. %s' % text)
33 raise RuntimeError('Please enable wireless. %s' % text)
36 raise RuntimeError('WEP key should be numbers. %s' % text)
39 raise RuntimeError('There was a system error on AP!')
43 raise RuntimeError('We have an unhandled alert: %s' % text)
82 raise RuntimeError('Invalid page number passed. Number of pages '
120 raise RuntimeError('Invalid mode passed: %x' % mode)
Dtrendnet812dru_ap_configurator.py27 raise RuntimeError('An unexpected alert was thrown: %s' % text)
64 raise RuntimeError('Invalid page number passed. Number of pages'
75 raise RuntimeError('Invalid page number passed. Number of pages'
79 raise RuntimeError('Incorrect band band = %s' % self.current_band)
97 raise RuntimeError('The mode selected %s is not supported by router'
/external/python/cpython2/Lib/
Dfileinput.py95 raise RuntimeError, "input() already active"
118 raise RuntimeError, "no active input()"
127 raise RuntimeError, "no active input()"
137 raise RuntimeError, "no active input()"
147 raise RuntimeError, "no active input()"
156 raise RuntimeError, "no active input()"
165 raise RuntimeError, "no active input()"
174 raise RuntimeError, "no active input()"
248 raise RuntimeError, "accessing lines out of order"
/external/autotest/client/cros/audio/
Dalsa_utils.py82 raise RuntimeError('amixer command failed')
115 raise RuntimeError('amixer command failed')
149 raise RuntimeError('alsa_helpers -l failed to return card names')
177 raise RuntimeError('arecord -l command failed')
227 raise RuntimeError('arecord -l command failed')
243 raise RuntimeError('%s failed' % cmd)
290 raise RuntimeError('no playback device')
325 raise RuntimeError('no record device')
351 raise RuntimeError('amixer command failed')
/external/python/cpython3/Lib/
Dfileinput.py93 raise RuntimeError("input() already active")
116 raise RuntimeError("no active input()")
125 raise RuntimeError("no active input()")
135 raise RuntimeError("no active input()")
145 raise RuntimeError("no active input()")
154 raise RuntimeError("no active input()")
163 raise RuntimeError("no active input()")
172 raise RuntimeError("no active input()")
263 raise RuntimeError("accessing lines out of order")
/external/python/cpython2/Demo/rpc/
Drpc.py114 raise RuntimeError, 'no REPLY but %r' % (mtype,)
121 raise RuntimeError, \
125 raise RuntimeError, \
127 raise RuntimeError, 'MSG_DENIED: %r' % (stat,)
129 raise RuntimeError, \
134 raise RuntimeError, 'call failed: PROG_UNAVAIL'
138 raise RuntimeError, \
141 raise RuntimeError, 'call failed: PROC_UNAVAIL'
143 raise RuntimeError, 'call failed: GARBAGE_ARGS'
145 raise RuntimeError, 'call failed: %r' % (stat,)
[all …]
/external/tensorflow/tensorflow/tools/git/
Dgen_git_source.py61 raise RuntimeError("Git directory has unparseable HEAD")
80 raise RuntimeError("Cannot delete directory %s due to permission "
83 raise RuntimeError("Cannot delete non-directory %s, inspect ",
88 raise RuntimeError("gen_git_source.py: Failed to create dir")
261 raise RuntimeError(
329 raise RuntimeError("Must pass --gen_root_path arg when running --configure")
339 raise RuntimeError("--configure or --generate or --raw_generate "
/external/toolchain-utils/
Dheat_map.py53 raise RuntimeError('Failed to generate perf report')
61 raise RuntimeError('Failed to run grep to get base address')
68 raise RuntimeError(
72 raise RuntimeError('Could not find the base address in the profile')
91 raise RuntimeError('Failed to run script to generate heatmap')
141 except RuntimeError, e:
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_futures.py159 with self.assertRaises((RuntimeError, AttributeError)):
163 with self.assertRaises((RuntimeError, AttributeError)):
167 with self.assertRaises((RuntimeError, AttributeError)):
171 with self.assertRaises((RuntimeError, AttributeError)):
175 with self.assertRaises((RuntimeError, AttributeError)):
181 except (RuntimeError, AttributeError):
187 except RuntimeError:
193 except RuntimeError:
225 exc = RuntimeError()
236 self.assertRaises(RuntimeError, f.result)
[all …]
/external/autotest/client/cros/multimedia/
Dfacade_resource.py217 raise RuntimeError('Autotest extension not found')
219 raise RuntimeError('Extension not found in %r'
299 raise RuntimeError('There is no tab for %s' % tab_descriptor)
315 raise RuntimeError('There is no tab for %s' % tab_descriptor)
328 raise RuntimeError('There is no tab for %s' % tab_descriptor)
342 raise RuntimeError('There is no tab for %s' % tab_descriptor)

12345678910>>...39