From 697639db415d44ca38adce1ee6c9dc3c8cf506e1 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 18 Mar 2013 13:58:52 +0200 Subject: [PATCH] Fixed up an issue with some tests that arose in the merge from HEAD --- tests/interfaces/openlp_core_ui/test_settings_form.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/interfaces/openlp_core_ui/test_settings_form.py b/tests/interfaces/openlp_core_ui/test_settings_form.py index 09d4a22eb..0d2f496fa 100644 --- a/tests/interfaces/openlp_core_ui/test_settings_form.py +++ b/tests/interfaces/openlp_core_ui/test_settings_form.py @@ -5,7 +5,7 @@ from unittest import TestCase from mock import MagicMock, patch -from PyQt4 import QtCore, QtTest +from PyQt4 import QtCore, QtTest, QtGui from openlp.core.ui import settingsform from openlp.core.lib import Registry, ScreenList @@ -31,6 +31,7 @@ class TestSettingsForm(TestCase): self.dummy2 = MagicMock() self.dummy3 = MagicMock() self.desktop = MagicMock() + self.app = QtGui.QApplication([]) self.desktop.primaryScreen.return_value = SCREEN[u'primary'] self.desktop.screenCount.return_value = SCREEN[u'number'] self.desktop.screenGeometry.return_value = SCREEN[u'size'] @@ -43,6 +44,7 @@ class TestSettingsForm(TestCase): Delete all the C++ objects at the end so that we don't have a segfault """ del self.form + del self.app def basic_cancel_test(self): """