'Issue #2039 where renaming fails after any method that calls
_rebuild_table_column_view (this includes sort and add_row).'

def test_rebuild_column_view_then_rename(self, table_types):

    t = table_types.Table([[1]], names=('a',))
    assert (t.colnames == ['a'])
    assert (t.dtype.names == ('a',))
    t.add_row((2,))
    assert (t.colnames == ['a'])
    assert (t.dtype.names == ('a',))
    t.rename_column('a', 'b')
    assert (t.colnames == ['b'])
    assert (t.dtype.names == ('b',))
    t.sort('b')
    assert (t.colnames == ['b'])
    assert (t.dtype.names == ('b',))
    t.rename_column('b', 'c')
    assert (t.colnames == ['c'])
    assert (t.dtype.names == ('c',))
