Skip to content

Commit

Permalink
Fixes #478 creates QApplication for QPixmap
Browse files Browse the repository at this point in the history
Without a QApplication the code will core dump as menioned
in the issue.
  • Loading branch information
kushaldas committed Jul 17, 2019
1 parent fa9e636 commit f1c50f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1c50f4

Please sign in to comment.