Home
last modified time | relevance | path

Searched refs:badtype (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_uuid.py193 badtype = lambda f: self.assertRaises(TypeError, f) function
249 badtype(lambda: uuid.UUID())
250 badtype(lambda: uuid.UUID(h, b))
251 badtype(lambda: uuid.UUID(h, b, b))
252 badtype(lambda: uuid.UUID(h, b, b, f))
253 badtype(lambda: uuid.UUID(h, b, b, f, i))
263 badtype(lambda: uuid.UUID(h, **args))
265 badtype(lambda: uuid.UUID(**args))
269 badtype(lambda: setattr(u, 'hex', h))
270 badtype(lambda: setattr(u, 'bytes', b))
[all …]
/external/python/cpython3/Lib/test/
Dtest_uuid.py216 badtype = lambda f: self.assertRaises(TypeError, f) function
272 badtype(lambda: self.uuid.UUID())
273 badtype(lambda: self.uuid.UUID(h, b))
274 badtype(lambda: self.uuid.UUID(h, b, b))
275 badtype(lambda: self.uuid.UUID(h, b, b, f))
276 badtype(lambda: self.uuid.UUID(h, b, b, f, i))
286 badtype(lambda: self.uuid.UUID(h, **args))
288 badtype(lambda: self.uuid.UUID(**args))
292 badtype(lambda: setattr(u, 'hex', h))
293 badtype(lambda: setattr(u, 'bytes', b))
[all …]