Skip to content

Commit c5765ba

Browse files
committed
tests/owmds: Fix tests w.r.t. asynchronous execution
1 parent b2f83fa commit c5765ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Orange/widgets/unsupervised/tests/test_owmds.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def setUp(self):
2929
}
3030
) # type: OWMDS
3131

32+
def tearDown(self):
33+
self.widget.onDeleteWidget()
34+
super().tearDown()
35+
3236
def _select_data(self):
3337
random.seed(42)
3438
points = random.sample(range(0, len(self.data)), 20)
@@ -56,7 +60,7 @@ def test_nan_plot(self):
5660
simulate.combobox_run_through_all(self.widget.cb_shape_value)
5761
simulate.combobox_run_through_all(self.widget.cb_size_value)
5862
simulate.combobox_run_through_all(self.widget.cb_label_value)
59-
63+
self.widget.stop()
6064
self.send_signal(self.widget.Inputs.data, None)
6165

6266
data.X[:, 0] = np.nan

0 commit comments

Comments
 (0)