mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -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$'
|
__revision__ = '$Format:%H$'
|
||||||
|
|
||||||
import qgis # NOQA
|
import qgis # NOQA
|
||||||
|
import sys
|
||||||
|
from qgis.PyQt.QtCore import QCoreApplication
|
||||||
from qgis.core import (QgsApplication)
|
from qgis.core import (QgsApplication)
|
||||||
from qgis.testing import unittest
|
from qgis.testing import unittest
|
||||||
|
|
||||||
@ -28,6 +29,8 @@ So don't add start_app here or anything else which creates a
|
|||||||
QgsApplication instance!
|
QgsApplication instance!
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
app = QCoreApplication(sys.argv)
|
||||||
|
|
||||||
|
|
||||||
class TestQgsNoApplication(unittest.TestCase):
|
class TestQgsNoApplication(unittest.TestCase):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user