tests: Wait until window is closed after :close
If we don't wait here, we might end up running the subsequent commands (like :command-history-prev) on the old window while it's still closing, causing an exception at least on AppVeyor: Traceback (most recent call last): File "C:\projects\qutebrowser\qutebrowser\app.py", line 110, in <lambda> target_arg=target_arg)) File "C:\projects\qutebrowser\qutebrowser\app.py", line 265, in process_pos_args win_id = mainwindow.get_window(via_ipc, force_tab=True) File "C:\projects\qutebrowser\qutebrowser\mainwindow\mainwindow.py", line 89, in get_window window.setWindowState(window.windowState() & ~Qt.WindowMinimized) RuntimeError: wrapped C/C++ object of type MainWindow has been deleted
This commit is contained in:
parent
9408babef5
commit
407537dbe6
@ -30,6 +30,7 @@ Feature: Using private browsing
|
||||
And I run :command-accept
|
||||
And I wait for the error "This should only be shown once"
|
||||
And I run :close
|
||||
And I wait for "removed: main-window" in the log
|
||||
And I run :set-cmd-text :
|
||||
And I run :command-history-prev
|
||||
And I run :command-accept
|
||||
|
Loading…
Reference in New Issue
Block a user