Tests: UI tests now avoid polling stdout if process didn't start. wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 10 Nov 2022 19:38:14 +0100
branchwxPython4
changeset 3670 cfb2b05b68c4
parent 3669 ca25c686cd97
child 3671 973a7681f206
Tests: UI tests now avoid polling stdout if process didn't start.
tests/ide_tests/sikuliberemiz.py
--- a/tests/ide_tests/sikuliberemiz.py	Thu Nov 10 19:36:30 2022 +0100
+++ b/tests/ide_tests/sikuliberemiz.py	Thu Nov 10 19:38:14 2022 +0100
@@ -109,7 +109,8 @@
         self.pattern = None
         self.success_event = Event()
 
-        self.thread = Thread(target = self._waitStdoutProc).start()
+        if self.proc is not None:
+            self.thread = Thread(target = self._waitStdoutProc).start()
 
     def __del__(self):
         pass  # self.thread.join() ?