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