Searched refs:MemoryError (Results 1 - 23 of 23) sorted by relevance

/external/python/cpython2/Lib/test/
H A Dtest_list.py33 self.assertRaises(MemoryError, list, xrange(sys.maxint // 2))
59 self.assertRaises((MemoryError, OverflowError), mul, lst, n)
60 self.assertRaises((MemoryError, OverflowError), imul, lst, n)
H A Dtest_linecache.py131 raise MemoryError
H A Dtest_strop.py147 self.assertRaises(MemoryError, strop.replace, a, "A", a)
H A Dtest_strtod.py98 except MemoryError:
H A Dseq_tests.py326 self.assertRaises(MemoryError, x.__mul__, 2**16)
328 self.assertRaises(MemoryError, x.__imul__, 2**16)
H A Dtest_format.py298 except MemoryError:
H A Dtest_bigmem.py724 except MemoryError:
742 except MemoryError:
1067 except MemoryError:
H A Dtest_exceptions.py79 self.raise_catch(MemoryError, "MemoryError")
H A Dtest_itertools.py142 with self.assertRaises((OverflowError, MemoryError)):
218 with self.assertRaises((OverflowError, MemoryError)):
289 with self.assertRaises((OverflowError, MemoryError)):
735 with self.assertRaises((OverflowError, MemoryError)):
H A Dtest_array.py1116 except MemoryError:
1119 self.fail("Array of size > maxsize created - MemoryError expected")
1123 except MemoryError:
1126 self.fail("Array of size > maxsize created - MemoryError expected")
H A Dtest_struct.py556 self.assertRaises(MemoryError, struct.pack, "357913941c", "a")
H A Dtest_unicode.py1650 # when a string allocation fails with a MemoryError.
1657 self.assertRaises(MemoryError, alloc)
1658 self.assertRaises(MemoryError, alloc)
H A Dtest_io.py1055 self.assertRaises((OverflowError, MemoryError, ValueError),
1368 self.assertRaises((OverflowError, MemoryError, ValueError),
1834 self.assertRaises((OverflowError, MemoryError, ValueError),
H A Dtest_bytes.py224 self.assertRaises((OverflowError, MemoryError),
/external/python/cpython2/Mac/Demo/example0/
H A Dchecktext.py14 except MemoryError:
/external/python/cpython2/Lib/ctypes/test/
H A Dtest_memfunctions.py13 self.assertRaises((OverflowError, MemoryError, SystemError),
15 self.assertRaises((OverflowError, MemoryError, SystemError),
H A Dtest_structures.py351 except MemoryError:
/external/autotest/client/cros/
H A Dsys_power.py84 class MemoryError(SuspendFailure): class in inherits:SuspendFailure
247 raise MemoryError('Memory corruption found after resume')
/external/python/cpython2/Lib/
H A Dlinecache.py42 except MemoryError:
/external/v8/tools/foozzie/
H A Dv8_foozzie.py310 except MemoryError:
/external/python/cpython2/Misc/Vim/
H A Dpython.vim89 syn keyword pythonException KeyboardInterrupt LookupError MemoryError
/external/python/cpython2/Objects/
H A Dexceptions.c1943 * MemoryError extends StandardError
1945 SimpleExtendsException(PyExc_StandardError, MemoryError, "Out of memory.");
2027 /* Pre-computed MemoryError instance. Best to create this as early as
2028 * possible and not wait until a MemoryError is actually raised!
2102 PRE_INIT(MemoryError)
2171 POST_INIT(MemoryError)
2186 Py_FatalError("Cannot pre-allocate MemoryError instance");
/external/python/cpython2/Lib/bsddb/test/
H A Dtest_dbenv.py328 self.assertRaises(MemoryError, tx)

Completed in 373 milliseconds