From f6381d5de6759da5cf9869293b85ddb8041e9193 Mon Sep 17 00:00:00 2001 From: astaric Date: Fri, 11 May 2018 11:35:54 +0200 Subject: [PATCH] test: make window active Needed to ensure paint method gets executed --- Orange/widgets/visualize/tests/test_owboxplot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Orange/widgets/visualize/tests/test_owboxplot.py b/Orange/widgets/visualize/tests/test_owboxplot.py index c55552cc575..7825e98bb1a 100644 --- a/Orange/widgets/visualize/tests/test_owboxplot.py +++ b/Orange/widgets/visualize/tests/test_owboxplot.py @@ -3,6 +3,7 @@ import numpy as np from AnyQt.QtCore import QItemSelectionModel +from AnyQt.QtTest import QTest from Orange.data import Table, ContinuousVariable, StringVariable, Domain from Orange.widgets.visualize.owboxplot import OWBoxPlot, FilterGraphicsRectItem @@ -158,6 +159,7 @@ def test_label_overlap(self): self.__select_variable("chest pain") self.__select_group("gender") self.widget.show() + QTest.qWait(3000) self.widget.hide() def _select_data(self):