Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_iterlen.py206 class BadLengthHint(object): class
220 self.assertRaises(RuntimeError, list, BadLengthHint())
222 self.assertRaises(RuntimeError, [].extend, BadLengthHint())
224 self.assertRaises(RuntimeError, zip, BadLengthHint())
226 self.assertRaises(RuntimeError, filter, None, BadLengthHint())
228 self.assertRaises(RuntimeError, map, chr, BadLengthHint())
231 self.assertRaises(RuntimeError, b.extend, BadLengthHint())
/external/python/cpython3/Lib/test/
Dtest_iterlen.py195 class BadLengthHint(object): class
215 self.assertRaises(RuntimeError, list, BadLengthHint())
217 self.assertRaises(RuntimeError, [].extend, BadLengthHint())
220 self.assertRaises(RuntimeError, b.extend, BadLengthHint())