Skip to content

Commit eace807

Browse files
committed
fix error when opening the progress dialog when running all the unit tests
1 parent 0945df9 commit eace807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit_tests/test_gui/test_view_progress_dialog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _test_thread(test_function):
3636
app = self.gui.get_wx_app()
3737
test_frame = self.TestFrame()
3838
test_frame.Show()
39-
ProgressDialog(test_frame, self._TITLE, 10)
39+
wx.CallAfter(ProgressDialog, test_frame, self._TITLE, 10)
4040
t = self.start_thread(_test_thread, (test_function_to_run,))
4141
app.MainLoop()
4242
self.wait_for(t.is_alive, False, self._thread_time_out, 0.1)

0 commit comments

Comments
 (0)