'Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/200'

def test_getdata_vla(self):

    def test(format_code):
        col = fits.Column(name='QUAL_SPE', format=format_code, array=([np.arange(1572)] * 225))
        tb_hdu = fits.BinTableHDU.from_columns([col])
        pri_hdu = fits.PrimaryHDU()
        hdu_list = fits.HDUList([pri_hdu, tb_hdu])
        with ignore_warnings():
            hdu_list.writeto(self.temp('toto.fits'), overwrite=True)
        data = fits.getdata(self.temp('toto.fits'))
        for (row_a, row_b) in zip(data['QUAL_SPE'], col.array):
            assert (row_a == row_b).all()
    for code in ('PJ()', 'QJ()'):
        test(code)
