thanks for the heads up ... didn't realize (and definitely not worth
porting). Second change to make.


On Wed, Jun 26, 2013 at 10:01 PM, Phillip Cloud <notifications@github.com>wrote:

> In pandas/tests/test_index.py:
>
> > +
> > +        # initializing with bad names (should always be equivalent)
> > +        major_axis, minor_axis = self.index.levels
> > +        major_labels, minor_labels = self.index.labels
> > +        assertRaisesRegexp(ValueError, "^Length of names", MultiIndex, levels=[major_axis, minor_axis],
> > +                           labels=[major_labels, minor_labels],
> > +                           names=['first'])
> > +        assertRaisesRegexp(ValueError, "^Length of names", MultiIndex, levels=[major_axis, minor_axis],
> > +                           labels=[major_labels, minor_labels],
> > +                           names=['first', 'second', 'third'])
> > +
> > +        # names are assigned
> > +        index.names = ["a", "b"]
> > +        ind_names = list(index.names)
> > +        level_names = [level.name for level in index.levels]
> > +        self.assertListEqual(ind_names, level_names)
>
> fyi you can't use this because it was introduced in py27<http://docs.python.org/2/library/unittest.html#unittest.TestCase.assertListEqual>
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pydata/pandas/pull/4039/files#r4907657>
> .
>