Skip to content

Commit

Permalink
Less verbose output and import PyQt from qgis module
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 28, 2018
1 parent 6dab714 commit 52eeaba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .docker/qgis_resources/test_runner/qgis_testrunner.py
Expand Up @@ -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:
Expand All @@ -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)

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 52eeaba

Please sign in to comment.