def test_open_groups_in_update_mode(self):

        # Copy the original file before making any possible changes to it
        self.copy_file('random_groups.fits')
        mtime = os.stat(self.temp('random_groups.fits')).st_mtime

        time.sleep(1)

        fits.open(self.temp('random_groups.fits'), mode='update',
                  memmap=False).close()

        # Ensure that no changes were made to the file merely by immediately
        # opening and closing it.
        assert mtime == os.stat(self.temp('random_groups.fits')).st_mtime
Test that opening a file containing a groups HDU in update mode and
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_groups.py/TestGroupsFunctions.test_open_groups_in_update_mode