Skip to content

Commit 859850a

Browse files
committed
gui PySide6 port: Fix ThreadWorker tests on Windows
1 parent d050597 commit 859850a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_gui/test_thread_worker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ def checkBlockingResult(res):
7878
barr.wait()
7979
w3.abort()
8080
threadBlock.set()
81-
with qtbot.waitSignals([w3.finished, w3.busyChanged]):
81+
# qtbot.waitSignals([w3.finished, w3.busyChanged]) fails with a KeyError
82+
# (Windows, PySide6 6.10.0, pytest-qt 4.5.0)
83+
with qtbot.waitSignal(w3.finished), qtbot.waitSignal(w3.busyChanged):
8284
w3(1, False)
8385

8486
qtbot.waitUntil(lambda: w3.busy is False)

0 commit comments

Comments
 (0)