Skip to content

Commit ae7d792

Browse files
committed
test_colormap_manager: fixed unattended mode
1 parent c1552e6 commit ae7d792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotpy/tests/features/test_colormap_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import qtpy.QtCore as QC
1515
import qtpy.QtGui as QG
1616
from guidata.env import execenv
17-
from guidata.qthelpers import qt_app_context
17+
from guidata.qthelpers import exec_dialog, qt_app_context
1818

1919
from plotpy.mathutils.colormaps import ALL_COLORMAPS
2020
from plotpy.widgets.colormap.manager import ColorMapManager
@@ -34,7 +34,7 @@ def test_colormap_manager() -> None:
3434
dlg.get_colormap()
3535
dlg.colormap_editor.update_colormap_widget()
3636
dlg.colormap_editor.update_current_dataset()
37-
result = dlg.exec()
37+
result = exec_dialog(dlg)
3838
execenv.print("Dialog result:", result)
3939
cmap = dlg.get_colormap()
4040
execenv.print("Selected colormap:", None if cmap is None else cmap.name)

0 commit comments

Comments
 (0)