From 0c0bdbff1c671f0a0a494e9a222304194b971521 Mon Sep 17 00:00:00 2001 From: Vesna Tanko Date: Wed, 9 Jun 2021 10:48:17 +0200 Subject: [PATCH] WidgetLearnerTestMixin: improve test The test passes in case the widget does not output the model, eventhough the model could not have been pickled. --- Orange/widgets/tests/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Orange/widgets/tests/base.py b/Orange/widgets/tests/base.py index b4f44891927..c8472bcca41 100644 --- a/Orange/widgets/tests/base.py +++ b/Orange/widgets/tests/base.py @@ -369,6 +369,7 @@ def test_output_model_picklable(self): self.widget.apply_button.button.click() self.wait_until_stop_blocking() model = self.get_output(self.widget.Outputs.model) + self.assertIsNotNone(model) pickle.dumps(model) @staticmethod