From f1c50f45c77f3410517c85d6cdd55775a6396f32 Mon Sep 17 00:00:00 2001 From: Kushal Das Date: Wed, 17 Jul 2019 18:19:34 +0530 Subject: [PATCH] Fixes #478 creates QApplication for QPixmap Without a QApplication the code will core dump as menioned in the issue. --- tests/test_resources.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_resources.py b/tests/test_resources.py index 2f08f649d2..30785aa35d 100644 --- a/tests/test_resources.py +++ b/tests/test_resources.py @@ -4,8 +4,11 @@ import securedrop_client.resources from PyQt5.QtGui import QIcon, QPixmap from PyQt5.QtSvg import QSvgWidget +from PyQt5.QtWidgets import QApplication +app = QApplication([]) + def test_path(mocker): """ Ensure the resource_filename function is called with the expected args and