Skip to content
Permalink
Browse files

Less verbose output and import PyQt from qgis module

  • Loading branch information
elpaso committed Nov 28, 2018
1 parent 6dab714 commit 52eeabae2d557b154893d172ed0758bef37679eb
Showing with 3 additions and 3 deletions.
  1. +3 −3 .docker/qgis_resources/test_runner/qgis_testrunner.py
@@ -70,7 +70,7 @@ def __get_test_function(test_module_name):
test_module = importlib.import_module(test_module_name)
function_name = 'run_all'
except ImportError as e:
traceback.print_exc(file=sys.stdout)
#traceback.print_exc(file=sys.stdout)
# Strip latest name
pos = test_module_name.rfind('.')
if pos <= 0:
@@ -81,7 +81,7 @@ def __get_test_function(test_module_name):
try:
test_module = importlib.import_module(test_module_name)
except ImportError as e:
traceback.print_exc(file=sys.stdout)
#traceback.print_exc(file=sys.stdout)
raise e
return getattr(test_module, function_name, None)

@@ -132,7 +132,7 @@ def __get_test_function(test_module_name):
else: # We are inside QGIS!
# Start as soon as the initializationCompleted signal is fired
from qgis.core import QgsApplication, QgsProjectBadLayerHandler, QgsProject
from PyQt.QtCore import QDir
from qgis.PyQt.QtCore import QDir
from qgis.utils import iface

class QgsProjectBadLayerDefaultHandler(QgsProjectBadLayerHandler):

0 comments on commit 52eeaba

Please sign in to comment.
You can’t perform that action at this time.