def test06_totalunwind(self):
        """Checking do/undo (total unwind)"""

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

        # open the do/undo
        self.h5file.enable_undo()

        # Create a new array
        self.h5file.create_array('/', 'otherarray', [3, 4], "Another array")
        self.h5file.mark()
        self.h5file.create_array('/', 'otherarray2', [4, 5], "Another array 2")

        # Now undo the past operations
        self._do_reopen()
        self.h5file.undo(0)
        self.assertTrue("/otherarray" not in self.h5file)
        self.assertTrue("/otherarray2" not in self.h5file)
dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_do_undo.py/BasicTestCase.test06_totalunwind/swapped operands of `%`