Try another workaround for broken Windows tests.
This commit is contained in:
parent
7dd908bd51
commit
852fe2f84c
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user