mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Add missing QCoreApplication for TestQgsNoApplication
This commit is contained in:
parent
2eff873e0e
commit
ca0c8302a1
@ -13,7 +13,8 @@ __copyright__ = 'Copyright 2017, The QGIS Project'
|
||||
__revision__ = '$Format:%H$'
|
||||
|
||||
import qgis # NOQA
|
||||
|
||||
import sys
|
||||
from qgis.PyQt.QtCore import QCoreApplication
|
||||
from qgis.core import (QgsApplication)
|
||||
from qgis.testing import unittest
|
||||
|
||||
@ -28,6 +29,8 @@ So don't add start_app here or anything else which creates a
|
||||
QgsApplication instance!
|
||||
"""
|
||||
|
||||
app = QCoreApplication(sys.argv)
|
||||
|
||||
|
||||
class TestQgsNoApplication(unittest.TestCase):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user