/external/python/cpython2/Lib/test/ |
D | test_slice.py | 36 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())
|
D | list_tests.py | 306 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())
|
D | seq_tests.py | 357 class BadCmp: class 363 self.assertRaises(BadExc, a.count, BadCmp()) 385 class BadCmp: class 392 self.assertRaises(BadExc, a.index, BadCmp())
|
D | test_set.py | 20 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())
|
D | test_dict.py | 431 class BadCmp(object): class 437 d1 = {BadCmp(): 1}
|
D | mapping_tests.py | 654 class BadCmp(object): class 660 d1 = self._full_mapping({BadCmp(): 1})
|
D | test_deque.py | 17 class BadCmp: class 345 d = deque(['a', 'b', BadCmp(), 'c'])
|
/external/python/cpython3/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 | list_tests.py | 328 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())
|
D | seq_tests.py | 355 class BadCmp: class 361 self.assertRaises(BadExc, a.count, BadCmp()) 383 class BadCmp: class 390 self.assertRaises(BadExc, a.index, BadCmp())
|
D | mapping_tests.py | 629 class BadCmp(object): class 635 d1 = self._full_mapping({BadCmp(): 1}) 637 self.assertRaises(Exc, lambda: BadCmp()==1)
|
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 | test_deque.py | 18 class BadCmp: class 183 d[n//2] = BadCmp() 272 d[n//2] = BadCmp() 510 d = deque(['a', 'b', BadCmp(), 'c'])
|
D | test_range.py | 264 class BadCmp: class 271 self.assertRaises(BadExc, a.index, BadCmp())
|
D | test_dict.py | 477 class BadCmp(object): class 483 d1 = {BadCmp(): 1}
|
D | test_functools.py | 851 class BadCmp: class 855 return BadCmp()
|