Try another workaround for broken Windows tests.

This commit is contained in:
Florian Bruhin 2015-02-19 10:41:04 +01:00
parent 7dd908bd51
commit 852fe2f84c

View File

@ -19,13 +19,15 @@
"""The qutebrowser test suite.""" """The qutebrowser test suite."""
import atexit from PyQt5.QtCore import qInstallMessageHandler
import functools
import sip
from PyQt5.QtWidgets import QApplication from PyQt5.QtWidgets import QApplication
# We create a singleton QApplication here.
qApp = QApplication([]) def qt_message_handler(msg_type, context, msg):
atexit.register(functools.partial(sip.delete, qApp)) print("Qt message: {}".format(msg))
# We create a singleton QApplication here.
app = QApplication([])
qInstallMessageHandler(qt_message_handler)