summaryrefslogtreecommitdiff
path: root/tests/unit/misc/test_miscwidgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/misc/test_miscwidgets.py')
-rw-r--r--tests/unit/misc/test_miscwidgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/misc/test_miscwidgets.py b/tests/unit/misc/test_miscwidgets.py
index 6e1919ec3..3c5c1eef1 100644
--- a/tests/unit/misc/test_miscwidgets.py
+++ b/tests/unit/misc/test_miscwidgets.py
@@ -38,7 +38,7 @@ class TestCommandLineEdit:
cmd_edit.set_prompt(':')
qtbot.add_widget(cmd_edit)
assert cmd_edit.text() == ''
- yield cmd_edit
+ return cmd_edit
def test_position(self, qtbot, cmd_edit):
"""Test cursor position based on the prompt."""