Searched refs:BadLen (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_iterlen.py | 201 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/ |
D | test_iterlen.py | 187 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/ |
D | test_sequences_and_iterators.py | 109 class BadLen(RuntimeError): class 117 raise BadLen() 119 with pytest.raises(BadLen):
|