Home
last modified time | relevance | path

Searched refs:KeyError (Results 1 – 25 of 419) sorted by relevance

12345678910>>...17

/third_party/python/Lib/test/libregrtest/
Dutils.py138 except KeyError:
145 except KeyError:
152 except KeyError:
159 except KeyError:
166 except KeyError:
173 except KeyError:
180 except KeyError:
187 except KeyError:
194 except KeyError:
201 except KeyError:
[all …]
/third_party/python/Lib/unittest/test/
Dtest_assertions.py63 self.assertRaises(KeyError, _raise, KeyError)
64 self.assertRaises(KeyError, _raise, KeyError("key"))
66 self.assertRaises(KeyError, lambda: None)
72 self.assertRaises(KeyError, _raise, ValueError)
77 with self.assertRaises(KeyError) as cm:
79 raise KeyError
85 with self.assertRaises(KeyError):
86 raise KeyError("key")
88 with self.assertRaises(KeyError):
95 with self.assertRaises(KeyError):
/third_party/python/Lib/test/
Dtest_raise.py53 raise KeyError("caught")
54 except KeyError:
65 raise KeyError("caught")
68 self.assertRaises(KeyError, reraise)
106 raise KeyError("caught")
182 raise IndexError from KeyError
184 self.assertIsInstance(e.__cause__, KeyError)
189 cause = KeyError()
434 raise KeyError
474 raise (IndexError, KeyError) # This should be a tuple!
Dtest_pwd.py93 self.assertRaises(KeyError, pwd.getpwnam, fakename)
102 self.assertRaises(KeyError, pwd.getpwuid, fakeuid)
106 self.assertRaises(KeyError, pwd.getpwuid, -1)
108 self.assertRaises(KeyError, pwd.getpwuid, 2**128)
109 self.assertRaises(KeyError, pwd.getpwuid, -2**128)
Dtest_string.py45 self.assertRaises(KeyError, fmt.format, "-{arg}-")
47 self.assertRaises(KeyError, fmt.format, "-{self}-")
50 self.assertRaises(KeyError, fmt.format, "-{format_string}-")
101 with self.assertRaises(KeyError):
115 except KeyError:
203 raise KeyError(name)
212 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
219 self.assertRaises(KeyError, s.substitute,
374 self.assertRaises(KeyError, t.substitute, {})
465 raises(KeyError, s.substitute)
Dtest_userdict.py61 self.assertRaises(KeyError, u1.__getitem__, "two")
70 self.assertRaises(KeyError, u3.__delitem__, "three")
134 self.assertRaises(KeyError, t.pop, "x")
142 self.assertRaises(KeyError, t.popitem)
202 except KeyError as err:
211 except KeyError as err:
Dtest_ordered_dict.py154 with self.assertRaises(KeyError):
227 with self.assertRaises(KeyError):
251 with self.assertRaises(KeyError):
265 with self.assertRaises(KeyError):
421 with self.assertRaises(KeyError):
423 with self.assertRaises(KeyError):
544 with self.assertRaises(KeyError):
546 with self.assertRaises(KeyError):
548 with self.assertRaises(KeyError):
550 with self.assertRaises(KeyError):
[all …]
Dtest_selectors.py80 self.assertRaises(KeyError, s.register, rd, selectors.EVENT_READ)
83 self.assertRaises(KeyError, s.register, rd.fileno(),
96 self.assertRaises(KeyError, s.unregister, 999999)
99 self.assertRaises(KeyError, s.unregister, rd)
169 self.assertRaises(KeyError, s.modify, 999999, selectors.EVENT_READ)
220 self.assertRaises(KeyError, mapping.__getitem__, rd)
221 self.assertRaises(KeyError, mapping.__getitem__, wr)
233 self.assertRaises(KeyError, s.get_key, 999999)
253 with self.assertRaises(KeyError):
528 with self.assertRaises(KeyError):
[all …]
Dtest_ucn.py141 with self.assertRaises(KeyError):
171 with self.assertRaises(KeyError):
196 with self.assertRaises(KeyError):
203 self.assertRaises(KeyError, unicodedata.lookup, 'unknown')
/third_party/python/Lib/
Dselectors.py74 except KeyError:
75 raise KeyError("{!r} is not registered".format(fileobj)) from None
192 except KeyError:
193 raise KeyError("{!r} is not registered".format(fileobj)) from None
242 raise KeyError("{!r} (FD {}) is already registered"
251 except KeyError:
252 raise KeyError("{!r} is not registered".format(fileobj)) from None
258 except KeyError:
259 raise KeyError("{!r} is not registered".format(fileobj)) from None
287 except KeyError:
[all …]
D_collections_abc.py738 raise KeyError(value)
747 raise KeyError from None
756 except KeyError:
811 raise KeyError
817 except KeyError:
823 except KeyError:
896 except KeyError:
941 raise KeyError
945 raise KeyError
955 except KeyError:
[all …]
Dconfigparser.py433 except KeyError:
506 except (KeyError, NoSectionError, NoOptionError):
539 except KeyError as e:
674 except KeyError:
791 except KeyError:
848 except KeyError:
873 raise KeyError
902 except KeyError:
946 except KeyError:
964 raise KeyError(key)
[all …]
/third_party/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py88 with self.assertRaises(KeyError):
158 self.assertRaises(KeyError, self.pool.FindFileContainingSymbol,
162 with self.assertRaises(KeyError):
249 self.assertRaises(KeyError, self.pool.FindMethodByName, '')
265 error_type = KeyError
269 with self.assertRaises(KeyError):
303 with self.assertRaises(KeyError):
313 with self.assertRaises(KeyError):
320 with self.assertRaises(KeyError):
333 with self.assertRaises(KeyError):
[all …]
Denum_type_wrapper.py57 except KeyError:
73 except KeyError:
112 except KeyError:
Dextension_dict.py42 raise KeyError('HasExtension() expects an extension handle, got: %s' %
46 raise KeyError('"%s" is not an extension.' % extension_handle.full_name)
49 raise KeyError('"%s" is missing a containing_type.'
53 raise KeyError('Extension "%s" extends message type "%s", but this '
/third_party/grpc/src/python/grpcio_reflection/grpc_reflection/v1alpha/
D_base.py59 except KeyError:
68 except KeyError:
81 except KeyError:
93 except KeyError:
/third_party/protobuf/python/google/protobuf/
Ddescriptor_pool.py334 except KeyError:
406 except KeyError:
411 except KeyError as error:
417 raise KeyError('Cannot find a file named %s' % file_name)
437 except KeyError:
444 except KeyError:
445 raise KeyError('Cannot find a file containing %s' % symbol)
462 except KeyError:
467 except KeyError:
472 except KeyError:
[all …]
Ddescriptor_database.py130 except KeyError:
139 except KeyError:
141 raise KeyError(symbol)
/third_party/vk-gl-cts/scripts/khr_util/
Dregistry.py105 raise KeyError
128 except KeyError:
131 except KeyError:
137 raise KeyError(key)
162 raise KeyError
220 raise KeyError
258 except KeyError:
306 except KeyError:
352 except KeyError:
/third_party/libinput/tools/
Dlibinput-record-verify-yaml.py59 except KeyError:
202 except KeyError:
224 except KeyError:
238 except KeyError:
391 except KeyError:
593 except KeyError:
601 except KeyError:
609 except KeyError:
616 except KeyError:
623 except KeyError:
[all …]
/third_party/python/Lib/importlib/
D__init__.py90 except KeyError:
157 except KeyError:
175 except KeyError:
/third_party/littlefs/scripts/
Dreadtree.py45 except KeyError:
53 except KeyError:
61 except KeyError:
97 except KeyError:
/third_party/python/Lib/xml/sax/
Dxmlreader.py300 raise KeyError(name)
305 raise KeyError(name)
355 raise KeyError(name)
362 raise KeyError(name)
/third_party/python/Lib/idlelib/
Dfilelist.py62 except KeyError:
75 except KeyError:
100 except KeyError:
/third_party/grpc/src/python/grpcio/
D_parallel_compile_patch.py26 except KeyError:
52 except KeyError:

12345678910>>...17