Skip to content

Commit

Permalink
test_owcsvimport: Remove create_widget override
Browse files Browse the repository at this point in the history
Avoid possible double memory reclamation
  • Loading branch information
ales-erjavec committed Feb 15, 2024
1 parent ddbc612 commit 49588e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Orange/widgets/data/tests/test_owcsvimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@


class TestOWCSVFileImport(WidgetTest):
def create_widget(
def create_widget_(
self, cls: Type[W], stored_settings: Optional[dict] = None,
reset_default_settings=True, **kwargs) -> W:

widget = super().create_widget(cls, stored_settings, reset_default_settings)
env = kwargs.pop("env", {})
for name, kwargs in env.items():
widget.widget
if reset_default_settings:
self.reset_default_settings(cls)
widget = cls.__new__(cls, signal_manager=self.signal_manager,
Expand Down

0 comments on commit 49588e1

Please sign in to comment.