Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
skjerns committed Mar 18, 2022
1 parent 459a338 commit 6be1b97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spyder_line_profiler/spyder/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ def __init__(self, name=None, plugin=None, parent=None):
self.output = None
self.use_colors = True
self.spyder_pythonpath = None
self.process = None
self.started_time = None

# Widgets

self.filecombo = PythonModulesComboBox(
self, id_= SpyderLineProfilerWidgetMainToolbarItems.FileCombo)
self.datatree = LineProfilerDataTree(self)
Expand Down Expand Up @@ -253,8 +255,6 @@ def setup(self):
triggered=self.clear_data,
)

self.process = None
self.started_time = None
self.set_running_state(False)
self.start_action.setEnabled(False)
self.clear_action.setEnabled(False)
Expand Down
1 change: 1 addition & 0 deletions spyder_line_profiler/tests/test_lineprofiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def test_profile_and_display_results(qtbot, tmpdir, monkeypatch):
MockQMessageBox = Mock()

widget = SpyderLineProfilerWidget(None)
widget.setup()
qtbot.addWidget(widget)
with qtbot.waitSignal(widget.sig_finished, timeout=10000, raising=True):
widget.analyze(testfilename)
Expand Down

0 comments on commit 6be1b97

Please sign in to comment.