From e5dbc3299937a1912edbe7ac62cff9972daa0966 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Mon, 20 Jul 2020 12:38:40 -0400 Subject: Fix persistent undo unit test --- suite/testcommon.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/suite/testcommon.py b/suite/testcommon.py index 6668471f..b633ede2 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -953,15 +953,18 @@ class VerifyBuilder(Builder): bv.begin_undo_actions() bv.functions[0].set_comment(bv.functions[0].start, "Function start") - bv.functions[0].set_comment(bv.functions[0].start, "Function start!") bv.commit_undo_actions() + comments = self.get_comments(bv) + functions = self.get_functions(bv) + bv.begin_undo_actions() - bv.add_function(bv.functions[0].start + 4) + bv.functions[0].set_comment(bv.functions[0].start, "Function start!") bv.commit_undo_actions() - comments = self.get_comments(bv) - functions = self.get_functions(bv) + bv.begin_undo_actions() + bv.create_user_function(bv.start) + bv.commit_undo_actions() bv.create_database(temp_name) bv.file.close() -- cgit v1.3.1