def test12_keepMark(self):
        """Ensuring the mark is kept after an UNDO operation"""

        if common.verbose:
            print('\n', '-=' * 30)
            print(self.__class__.__name__ % "Running %s.test12_keepMark...")

        self.h5file.enable_undo()
        self.h5file.create_array('/', 'newarray1', [1])

        mid = self.h5file.mark()
        self.assertTrue(mid is not None)
        self._do_reopen()
        self.h5file.undo()

        # We should have moved to the initial mark.
        self.assertEqual(self.h5file.get_current_mark(), 0)

        # So /newarray1 should not be there.
        self.assertTrue('/newarray1' not in self.h5file)
dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_do_undo.py/BasicTestCase.test12_keepMark/swapped operands of `%`