We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d67817 commit 848ce49Copy full SHA for 848ce49
pandas/tests/indexes/common.py
@@ -127,6 +127,12 @@ def test_ndarray_compat_properties(self):
127
128
values = idx.values
129
for prop in self._compat_props:
130
+ # skip equivalency check if converted type is object, as happens
131
+ # for PeriodIndex, since then object (address) would be 4 bytes
132
+ # on 32bit platforms and equivalence to int64 of original
133
+ # date time is just accidental
134
+ if prop in ('itemsize', 'nbytes') and values.dtype.name == 'object':
135
+ continue
136
self.assertEqual(getattr(idx, prop), getattr(values, prop))
137
138
# test for validity
0 commit comments