From 86c7ed3170ff682fdc98ce3fdc07ec6082835f30 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Wed, 10 Aug 2016 23:44:32 -0400 Subject: [PATCH] Fix helpdlg test Dialog needs to be created before trying to destroy it. --- unittests/test_helpdlg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unittests/test_helpdlg.py b/unittests/test_helpdlg.py index 13dfe0b8..6bbc2041 100644 --- a/unittests/test_helpdlg.py +++ b/unittests/test_helpdlg.py @@ -15,6 +15,7 @@ class helpdlg_Tests(wtc.WidgetTestCase): data.AddBook(os.path.join(helpPath, 'testing.hhp')) data.AddBook(os.path.join(helpPath, 'another.hhp')) dlg = wx.html.HtmlHelpDialog(data) + dlg.Create(self.frame) self.myYield() dlg.Destroy()