diff --git a/tests/unit/mainwindow/test_tabwidget.py b/tests/unit/mainwindow/test_tabwidget.py index bf7ffb383..6d5dd9cb5 100644 --- a/tests/unit/mainwindow/test_tabwidget.py +++ b/tests/unit/mainwindow/test_tabwidget.py @@ -71,4 +71,8 @@ class TestTabWidget: widget.addTab(page, icon, 'foobar') widget.show() qtbot.waitForWindowShown(widget) + # We need to call close() here because closing needs the stubbed config + # on OS X, but when qtbot closes it, the config stub is already gone. + # WORKAROUND for https://github.com/pytest-dev/pytest-qt/issues/106 + # https://github.com/The-Compiler/qutebrowser/pull/1048#issuecomment-150660769 widget.close()