Searched refs:__sizeof__ (Results 1 - 13 of 13) sorted by relevance

/external/python/cpython3/Lib/test/
H A Dtest_pickle.py194 self.assertEqual(object.__sizeof__(p), basesize)
218 self.assertEqual(object.__sizeof__(u), basesize)
H A Dtest_sys.py852 def __sizeof__(self): member in class:SizeofTest.test_errors.BadSizeof
857 def __sizeof__(self): member in class:SizeofTest.test_errors.InvalidSizeof
864 def __sizeof__(self): member in class:SizeofTest.test_errors.FloatSizeof
870 def __sizeof__(self): member in class:SizeofTest.test_errors.OverflowSizeof
H A Dtest_memoryio.py734 self.assertEqual(object.__sizeof__(io.BytesIO()), basesize)
H A Dtest_decimal.py5434 self.assertGreater(Decimal(0).__sizeof__(), 0)
5436 x = Decimal(10**(19*24)).__sizeof__()
5437 y = Decimal(10**(19*25)).__sizeof__()
5440 x = Decimal(10**(9*24)).__sizeof__()
5441 y = Decimal(10**(9*25)).__sizeof__()
H A Dtest_deque.py760 self.assertEqual(object.__sizeof__(deque()), basesize)
/external/python/cpython2/Lib/test/
H A Dtest_sys.py501 def __sizeof__(self): member in class:SizeofTest.test_errors.BadSizeof
506 def __sizeof__(self): member in class:SizeofTest.test_errors.InvalidSizeof
513 def __sizeof__(self): member in class:SizeofTest.test_errors.OverflowSizeof
H A Dtest_deque.py528 self.assertEqual(object.__sizeof__(deque()), basesize)
H A Dtest_memoryio.py704 self.assertEqual(object.__sizeof__(io.BytesIO()), basesize)
H A D_mock_backport.py1712 '__sizeof__': lambda self: object.__sizeof__(self),
/external/python/cpython3/Lib/collections/
H A D__init__.py209 def __sizeof__(self): member in class:OrderedDict
/external/pdfium/third_party/pymock/
H A Dmock.py1768 '__sizeof__': lambda self: object.__sizeof__(self),
/external/python/cpython3/Lib/unittest/
H A Dmock.py1748 '__sizeof__': lambda self: object.__sizeof__(self),
/external/python/cpython3/Python/
H A Dsysmodule.c41 _Py_IDENTIFIER(__sizeof__); variable
1097 "Type %.100s doesn't define __sizeof__",
1114 PyErr_SetString(PyExc_ValueError, "__sizeof__() should return >= 0");

Completed in 502 milliseconds