Gbp-Pq: Name changeset_848ce49a9f006eadfd169d2fc545a5d15b616f7c.diff
values = idx.values
for prop in self._compat_props:
+ # skip equivalency check if converted type is object, as happens
+ # for PeriodIndex, since then object (address) would be 4 bytes
+ # on 32bit platforms and equivalence to int64 of original
+ # date time is just accidental
+ if prop in ('itemsize', 'nbytes') and values.dtype.name == 'object':
+ continue
self.assertEqual(getattr(idx, prop), getattr(values, prop))
# test for validity