def test_crash_before_deleting_compacted_segments(self):
        self.add_keys()
        self.repository.io.delete_segment = None
        try:
            self.repository.commit()
        except __HOLE__:
            pass
        self.reopen()
        with self.repository:
            self.assert_equal(len(self.repository), 3)
            self.assert_equal(self.repository.check(), True)
            self.assert_equal(len(self.repository), 3)
dataset/ETHPy150Open borgbackup/borg/borg/testsuite/repository.py/RepositoryCommitTestCase.test_crash_before_deleting_compacted_segments