summaryrefslogtreecommitdiff
path: root/silx/gui/plot/test/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/gui/plot/test/utils.py')
-rw-r--r--silx/gui/plot/test/utils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/silx/gui/plot/test/utils.py b/silx/gui/plot/test/utils.py
index ec9bc7c..efba39c 100644
--- a/silx/gui/plot/test/utils.py
+++ b/silx/gui/plot/test/utils.py
@@ -1,7 +1,7 @@
# coding: utf-8
# /*##########################################################################
#
-# Copyright (c) 2016 European Synchrotron Radiation Facility
+# Copyright (c) 2016-2018 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -48,11 +48,12 @@ class PlotWidgetTestCase(TestCaseQt):
__screenshot_already_taken = False
- def __init__(self, methodName='runTest'):
+ def __init__(self, methodName='runTest', backend=None):
TestCaseQt.__init__(self, methodName=methodName)
+ self.__backend = backend
def _createPlot(self):
- return PlotWidget()
+ return PlotWidget(backend=self.__backend)
def setUp(self):
super(PlotWidgetTestCase, self).setUp()