Home
last modified time | relevance | path

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

/third_party/python/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())
Dseq_tests.py364 class BadCmp: class
370 self.assertRaises(BadExc, a.count, BadCmp())
397 class BadCmp: class
404 self.assertRaises(BadExc, a.index, BadCmp())
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())
Dmapping_tests.py640 class BadCmp(object): class
646 d1 = self._full_mapping({BadCmp(): 1})
648 self.assertRaises(Exc, lambda: BadCmp()==1)
Dtest_deque.py17 class BadCmp: class
164 d[n//2] = BadCmp()
265 d[n//2] = BadCmp()
511 d = deque(['a', 'b', BadCmp(), 'c'])
Dlist_tests.py336 class BadCmp: class
343 self.assertRaises(BadExc, a.remove, BadCmp())
Dtest_range.py286 class BadCmp: class
293 self.assertRaises(BadExc, a.index, BadCmp())
Dtest_dict.py608 class BadCmp(object): class
614 d1 = {BadCmp(): 1}
Dtest_functools.py909 class BadCmp: class
913 return BadCmp()