Home
last modified time | relevance | path

Searched refs:BadLen (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_iterlen.py201 class BadLen(object): class
219 self.assertRaises(RuntimeError, list, BadLen())
221 self.assertRaises(RuntimeError, [].extend, BadLen())
223 self.assertRaises(RuntimeError, zip, BadLen())
225 self.assertRaises(RuntimeError, filter, None, BadLen())
227 self.assertRaises(RuntimeError, map, chr, BadLen())
230 self.assertRaises(RuntimeError, b.extend, BadLen())
/external/python/cpython3/Lib/test/
Dtest_iterlen.py187 class BadLen(object): class
214 self.assertRaises(RuntimeError, list, BadLen())
216 self.assertRaises(RuntimeError, [].extend, BadLen())
219 self.assertRaises(RuntimeError, b.extend, BadLen())
/external/python/pybind11/tests/
Dtest_sequences_and_iterators.py109 class BadLen(RuntimeError): class
117 raise BadLen()
119 with pytest.raises(BadLen):