Home
last modified time | relevance | path

Searched refs:BadCmp (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_slice.py36 class BadCmp(object): class
41 s1 = slice(BadCmp())
42 s2 = slice(BadCmp())
46 s1 = slice(1, BadCmp())
47 s2 = slice(1, BadCmp())
51 s1 = slice(1, 2, BadCmp())
52 s2 = slice(1, 2, BadCmp())
Dlist_tests.py306 class BadCmp: class
313 self.assertRaises(BadExc, a.remove, BadCmp())
346 class BadCmp: class
352 self.assertRaises(BadExc, a.count, BadCmp())
374 class BadCmp: class
381 self.assertRaises(BadExc, a.index, BadCmp())
Dseq_tests.py357 class BadCmp: class
363 self.assertRaises(BadExc, a.count, BadCmp())
385 class BadCmp: class
392 self.assertRaises(BadExc, a.index, BadCmp())
Dtest_set.py20 class BadCmp: class
281 s = self.thetype([BadCmp()])
283 self.assertRaises(RuntimeError, self.thetype, [BadCmp(), BadCmp()])
284 self.assertRaises(RuntimeError, s.__contains__, BadCmp())
287 self.assertRaises(RuntimeError, s.add, BadCmp())
288 self.assertRaises(RuntimeError, s.discard, BadCmp())
289 self.assertRaises(RuntimeError, s.remove, BadCmp())
Dtest_dict.py431 class BadCmp(object): class
437 d1 = {BadCmp(): 1}
Dmapping_tests.py654 class BadCmp(object): class
660 d1 = self._full_mapping({BadCmp(): 1})
Dtest_deque.py17 class BadCmp: class
345 d = deque(['a', 'b', BadCmp(), 'c'])
/external/python/cpython3/Lib/test/
Dtest_slice.py100 class BadCmp(object): class
104 s1 = slice(BadCmp())
105 s2 = slice(BadCmp())
109 s1 = slice(1, BadCmp())
110 s2 = slice(1, BadCmp())
114 s1 = slice(1, 2, BadCmp())
115 s2 = slice(1, 2, BadCmp())
Dlist_tests.py328 class BadCmp: class
335 self.assertRaises(BadExc, a.remove, BadCmp())
368 class BadCmp: class
374 self.assertRaises(BadExc, a.count, BadCmp())
396 class BadCmp: class
403 self.assertRaises(BadExc, a.index, BadCmp())
Dseq_tests.py355 class BadCmp: class
361 self.assertRaises(BadExc, a.count, BadCmp())
383 class BadCmp: class
390 self.assertRaises(BadExc, a.index, BadCmp())
Dmapping_tests.py629 class BadCmp(object): class
635 d1 = self._full_mapping({BadCmp(): 1})
637 self.assertRaises(Exc, lambda: BadCmp()==1)
Dtest_set.py22 class BadCmp: class
301 s = self.thetype([BadCmp()])
303 self.assertRaises(RuntimeError, self.thetype, [BadCmp(), BadCmp()])
304 self.assertRaises(RuntimeError, s.__contains__, BadCmp())
307 self.assertRaises(RuntimeError, s.add, BadCmp())
308 self.assertRaises(RuntimeError, s.discard, BadCmp())
309 self.assertRaises(RuntimeError, s.remove, BadCmp())
Dtest_deque.py18 class BadCmp: class
183 d[n//2] = BadCmp()
272 d[n//2] = BadCmp()
510 d = deque(['a', 'b', BadCmp(), 'c'])
Dtest_range.py264 class BadCmp: class
271 self.assertRaises(BadExc, a.index, BadCmp())
Dtest_dict.py477 class BadCmp(object): class
483 d1 = {BadCmp(): 1}
Dtest_functools.py851 class BadCmp: class
855 return BadCmp()