From 85d5707f3a5939b9d24de1eac29f4f2082d55665 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 3 Apr 2017 21:09:19 -0700 Subject: [PATCH] It looks like the Mac workaround is not needed anymore --- unittests/test_lib_sized_controls.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/unittests/test_lib_sized_controls.py b/unittests/test_lib_sized_controls.py index 1131ee98..e71e170a 100644 --- a/unittests/test_lib_sized_controls.py +++ b/unittests/test_lib_sized_controls.py @@ -62,15 +62,11 @@ class sizedDialog_Tests(wtc.WidgetTestCase): ok = wx.Button(dlg.GetContentsPane(), wx.ID_OK, pos=(10,10)) cancel = wx.Button(dlg.GetContentsPane(), wx.ID_CANCEL, pos=(100,10)) - if 'wxMac' not in wx.PlatformInfo: - # Something is causing a hang when running one of these tests, so - # for now we'll not actually test ShowModal on Macs. - # TODO: FIX THIS!! - wx.CallLater(250, dlg.EndModal, wx.ID_OK) - val = dlg.ShowModal() - dlg.Destroy() - self.assertTrue(val == wx.ID_OK) - self.myYield() + wx.CallLater(250, dlg.EndModal, wx.ID_OK) + val = dlg.ShowModal() + dlg.Destroy() + self.assertTrue(val == wx.ID_OK) + self.myYield() #def test_dialogDefaultCtor(self):