From 36fa246abbee5808e306669e6304eddcaef661b9 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. --- .circleci/config.yml | 2 +- tests/test_resources.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 252908849..efc433193 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,7 +36,7 @@ jobs: steps: - checkout - - run: sudo apt-get install -y sqlite3 + - run: sudo apt-get install -y sqlite3 libqt5x11extras5 - run: name: Install requirements and run tests diff --git a/tests/test_resources.py b/tests/test_resources.py index 2f08f649d..703a9e557 100644 --- a/tests/test_resources.py +++ b/tests/test_resources.py @@ -4,6 +4,9 @@ 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):