Merge pull request #1081 from swt2c/fix_filectrl_tests

Fix filectrl tests - wait a little longer to ensure event loop runs
This commit is contained in:
Robin Dunn
2018-11-30 14:41:01 -08:00
committed by GitHub

View File

@@ -37,7 +37,7 @@ class filectrl_Tests(wtc.WidgetTestCase):
defaultDirectory=os.path.dirname(__file__),
defaultFilename=os.path.basename(__file__),
style=wx.FC_OPEN)
self.waitFor(50)
self.waitFor(100)
self.assertEqual(fc.GetFilename(), os.path.basename(__file__))
self.assertEqual(fc.GetPath(), os.path.abspath(__file__))
@@ -50,7 +50,7 @@ class filectrl_Tests(wtc.WidgetTestCase):
defaultDirectory=os.path.dirname(__file__),
defaultFilename=os.path.basename(__file__),
style=wx.FC_OPEN|wx.FC_MULTIPLE)
self.waitFor(50)
self.waitFor(100)
self.assertEqual(fc.GetFilenames(), [os.path.basename(__file__)])
self.assertEqual(fc.GetPaths(), [os.path.abspath(__file__)])