Add a comment for close() call.

This commit is contained in:
Florian Bruhin 2015-10-24 08:07:43 +02:00
parent 9722d4ba03
commit cdb9c0998f

View File

@ -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()