From a7ea2ba3f4aecce78f7a76cf55d356af0fc08f4a Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Mon, 3 Dec 2018 11:03:08 -0500 Subject: [PATCH] TST: run setitem tests for IntegerArray (#24054) * TST: run setitem tests for IntegerArray * doc-string --- pandas/core/arrays/integer.py | 5 +++++ pandas/tests/extension/test_integer.py | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py index 7996e24d0c914f..f500422f0cbc57 100644 --- a/pandas/core/arrays/integer.py +++ b/pandas/core/arrays/integer.py @@ -58,6 +58,11 @@ def numpy_dtype(self): def kind(self): return self.numpy_dtype.kind + @cache_readonly + def itemsize(self): + """ Return the number of bytes in this dtype """ + return self.numpy_dtype.itemsize + @classmethod def construct_array_type(cls): """Return the array type associated with this dtype diff --git a/pandas/tests/extension/test_integer.py b/pandas/tests/extension/test_integer.py index efee6473898841..218b2e9bd0e118 100644 --- a/pandas/tests/extension/test_integer.py +++ b/pandas/tests/extension/test_integer.py @@ -174,6 +174,10 @@ class TestGetitem(base.BaseGetitemTests): pass +class TestSetitem(base.BaseSetitemTests): + pass + + class TestMissing(base.BaseMissingTests): pass