Searched refs:BadCmp (Results 1 – 9 of 9) sorted by relevance
/third_party/python/Lib/test/ |
D | test_slice.py | 100 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())
|
D | seq_tests.py | 364 class BadCmp: class 370 self.assertRaises(BadExc, a.count, BadCmp()) 397 class BadCmp: class 404 self.assertRaises(BadExc, a.index, BadCmp())
|
D | test_set.py | 22 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())
|
D | mapping_tests.py | 640 class BadCmp(object): class 646 d1 = self._full_mapping({BadCmp(): 1}) 648 self.assertRaises(Exc, lambda: BadCmp()==1)
|
D | test_deque.py | 17 class BadCmp: class 164 d[n//2] = BadCmp() 265 d[n//2] = BadCmp() 511 d = deque(['a', 'b', BadCmp(), 'c'])
|
D | list_tests.py | 336 class BadCmp: class 343 self.assertRaises(BadExc, a.remove, BadCmp())
|
D | test_range.py | 286 class BadCmp: class 293 self.assertRaises(BadExc, a.index, BadCmp())
|
D | test_dict.py | 608 class BadCmp(object): class 614 d1 = {BadCmp(): 1}
|
D | test_functools.py | 909 class BadCmp: class 913 return BadCmp()
|