diff --git a/test/asammdf/gui/widgets/test_NumericWidget_Shortcut.py b/test/asammdf/gui/widgets/test_NumericWidget_Shortcut.py index 4b6353612..21c1ce450 100644 --- a/test/asammdf/gui/widgets/test_NumericWidget_Shortcut.py +++ b/test/asammdf/gui/widgets/test_NumericWidget_Shortcut.py @@ -160,6 +160,8 @@ def setUp(self): self.table_view = self.numeric.channels.dataView def tearDown(self): + if self.widget: + self.widget.destroy() super().tearDown() def test_NumericWidget_Shortcut_Keys_Ctrl_H_Ctrl_B_Ctrl_P_Ctrl_T(self): diff --git a/test/asammdf/gui/widgets/test_PlotWidget_Shortcuts.py b/test/asammdf/gui/widgets/test_PlotWidget_Shortcuts.py index abf935a4f..a06cad5ce 100644 --- a/test/asammdf/gui/widgets/test_PlotWidget_Shortcuts.py +++ b/test/asammdf/gui/widgets/test_PlotWidget_Shortcuts.py @@ -369,7 +369,10 @@ def test_Plot_Plot_Shortcut_Key_2(self): for _ in range(50): self.processEvents(0.01) # Evaluate - self.assertTrue(Pixmap.is_black(self.plot.plot.viewport().grab())) + pm = self.plot.plot.viewport().grab() + colors = Pixmap.color_names(pm) + print(colors) + self.assertTrue(Pixmap.is_black(pm)) # case 1 self.mouseClick_WidgetItem(self.channels[0])