'Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/189
For this test we mostly just care that comparing to compressed images
does not crash, and returns the correct results.  Two compressed images
will be considered identical if the decompressed data is the same.
Obviously we test whether or not the same compression was used by
looking for (or ignoring) header differences.'

def test_identical_comp_image_hdus(self):

    data = np.arange(100.0).reshape((10, 10))
    hdu = fits.CompImageHDU(data=data)
    hdu.writeto(self.temp('test.fits'))
    hdula = fits.open(self.temp('test.fits'))
    hdulb = fits.open(self.temp('test.fits'))
    diff = FITSDiff(hdula, hdulb)
    assert diff.identical
