From 543c6cb90bb1d9e991428cb155fff7511ecd42d4 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 19 Feb 2015 07:46:08 +0100 Subject: [PATCH] Quit test QApplication properly. Maybe this fixes the hangs and crashes on the Windows buildbots? --- qutebrowser/test/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qutebrowser/test/__init__.py b/qutebrowser/test/__init__.py index 8c1a54b99..a8cb56fdb 100644 --- a/qutebrowser/test/__init__.py +++ b/qutebrowser/test/__init__.py @@ -19,8 +19,11 @@ """The qutebrowser test suite.""" +import atexit + from PyQt5.QtWidgets import QApplication # We create a singleton QApplication here. qApp = QApplication([]) +atexit.register(qApp.quit)