'Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/167
Similar to test_open_scaled_in_update_mode(), but specifically for
compressed images.'

def test_open_comp_image_in_update_mode(self):

    self.copy_file('comp.fits')
    mtime = os.stat(self.temp('comp.fits')).st_mtime
    time.sleep(1)
    fits.open(self.temp('comp.fits'), mode='update').close()
    assert (mtime == os.stat(self.temp('comp.fits')).st_mtime)
