mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Add qtbot.wait to ensure pending events don't cause errors
This commit is contained in:
parent
be13aa2ddb
commit
686bb9cea5
1 changed files with 2 additions and 0 deletions
|
|
@ -44,6 +44,8 @@ def main_window(qtbot):
|
|||
main = BeeRefMainWindow(app)
|
||||
qtbot.addWidget(main)
|
||||
yield main
|
||||
# ensure pending events can be processed before things get deleted:
|
||||
qtbot.wait(100)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Reference in a new issue