diff --git a/Orange/widgets/data/utils/pythoneditor/tests/base.py b/Orange/widgets/data/utils/pythoneditor/tests/base.py index a6625e3674c..8e6909e94c1 100644 --- a/Orange/widgets/data/utils/pythoneditor/tests/base.py +++ b/Orange/widgets/data/utils/pythoneditor/tests/base.py @@ -7,6 +7,8 @@ as published by the Free Software Foundation, version 2.1 of the license. This is compatible with Orange3's GPL-3.0 license. """ # pylint: disable=duplicate-code +import gc + from AnyQt.QtGui import QKeySequence from AnyQt.QtTest import QTest from AnyQt.QtCore import Qt @@ -26,6 +28,7 @@ def setUp(self) -> None: def tearDown(self) -> None: self.qpart.terminate() del self.qpart + gc.collect() super().tearDown()