'Regression test for https://github.com/astropy/astropy/pull/3580'

def test_tdim_of_size_one(self):

    hdulist = fits.open(self.data('tdim.fits'))
    assert (hdulist[1].data['V_mag'].shape == (3, 1, 1))
