To make testing more robust, the main window should become a fixture, e.g. DCScope: https://github.com/DC-analysis/DCscope/blob/56b4304f5587e226b518de8e8c79e90356517d5e/tests/conftest.py#L20
What might also help against random CI failures (such as we are seeing for Python 3.11 in #52) might be to
add the main window to qtbot consistently: qtbot.addWidget(mw) https://github.com/DC-analysis/DCscope/blob/56b4304f5587e226b518de8e8c79e90356517d5e/tests/test_gui_filter.py#L58
To make testing more robust, the main window should become a fixture, e.g. DCScope: https://github.com/DC-analysis/DCscope/blob/56b4304f5587e226b518de8e8c79e90356517d5e/tests/conftest.py#L20
What might also help against random CI failures (such as we are seeing for Python 3.11 in #52) might be to
add the main window to qtbot consistently:
qtbot.addWidget(mw)https://github.com/DC-analysis/DCscope/blob/56b4304f5587e226b518de8e8c79e90356517d5e/tests/test_gui_filter.py#L58