From 7d893e0bbd8d0094aafe052b395cd132c4e2b75a Mon Sep 17 00:00:00 2001 From: Johannes Pohl Date: Mon, 27 Mar 2017 19:27:32 +0200 Subject: [PATCH] add timeout before adding signalfile to prevent graphic view segfaults --- tests/QtTestCase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/QtTestCase.py b/tests/QtTestCase.py index cadbba76..666b1a7b 100644 --- a/tests/QtTestCase.py +++ b/tests/QtTestCase.py @@ -31,6 +31,8 @@ class QtTestCase(unittest.TestCase): self.form = MainController() def add_signal_to_form(self, filename: str): + QApplication.instance().processEvents() + QTest.qWait(1) self.form.add_signalfile(get_path_for_data_file(filename)) def tearDown(self):