From 7dd908bd51ed38a9ce9d8b5714d607c7a1462535 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 19 Feb 2015 10:03:19 +0100 Subject: [PATCH] Try calling sip.delete on the test QApplication. Maybe this helps with the unit tests on Windows? --- qutebrowser/test/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/test/__init__.py b/qutebrowser/test/__init__.py index a8cb56fdb..a17e82337 100644 --- a/qutebrowser/test/__init__.py +++ b/qutebrowser/test/__init__.py @@ -20,10 +20,12 @@ """The qutebrowser test suite.""" import atexit +import functools +import sip from PyQt5.QtWidgets import QApplication # We create a singleton QApplication here. qApp = QApplication([]) -atexit.register(qApp.quit) +atexit.register(functools.partial(sip.delete, qApp))