File fix-wx-tests.patch of Package python-pyface

Index: pyface-7.4.2/pyface/ui/wx/util/tests/test_image_helpers.py
===================================================================
--- pyface-7.4.2.orig/pyface/ui/wx/util/tests/test_image_helpers.py
+++ pyface-7.4.2/pyface/ui/wx/util/tests/test_image_helpers.py
@@ -18,6 +18,11 @@ from ..image_helpers import (
 )
 
 
+_app = wx.GetApp()
+if _app is None:
+    _app = wx.App()
+
+
 class TestImageHelpers(unittest.TestCase):
 
     def test_image_to_bitmap(self):
openSUSE Build Service is sponsored by