fix(becconnector): ophyd thread killer on exit + in conftest

This commit is contained in:
2025-10-28 20:39:19 +01:00
parent 7983a4527a
commit 5567274f2d
2 changed files with 15 additions and 0 deletions
+4
View File
@@ -41,6 +41,10 @@ def qapplication(qtbot, request, testable_qtimer_class): # pylint: disable=unus
# if the test failed, we don't want to check for open widgets as
# it simply pollutes the output
# stop pyepics dispatcher for leaking tests
from ophyd._pyepics_shim import _dispatcher
_dispatcher.stop()
if request.node.stash._storage.get("failed"):
print("Test failed, skipping cleanup checks")
return