Skip to content

Commit

Permalink
... gc
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Mar 5, 2024
1 parent 0f9a1c3 commit 4b75691
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Orange/widgets/data/utils/pythoneditor/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
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
from AnyQt.QtCore import Qt, delete

from orangewidget.utils import enum_as_int

Expand All @@ -25,7 +27,9 @@ def setUp(self) -> None:

def tearDown(self) -> None:
self.qpart.terminate()
delete(self.qpart)
del self.qpart
gc.collect()
super().tearDown()


Expand Down

0 comments on commit 4b75691

Please sign in to comment.