Skip to content

Commit

Permalink
Retain compatibility with Spyder 6.0.0 alpha 2
Browse files Browse the repository at this point in the history
That is the latest version currently on conda-forge, so half of the GitHub
automatic tests use Spyder 6.0.0 alpha 2.
  • Loading branch information
jitseniesen committed Nov 7, 2023
1 parent 2e7deb8 commit 4f903b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spyder_unittest/widgets/tests/test_confpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ def config_dialog(qtbot, request):
qtbot.addWidget(main_ref)

preferences = main_ref._main.get_plugin(Plugins.Preferences)
preferences.open_dialog()
try:
# Spyder 6.0.0 alpha 3 and higher
preferences.open_dialog()
except TypeError:
# Spyder 6.0.0 alpha 2 and lower
preferences.open_dialog(None)
container = preferences.get_container()
dlg = container.dialog

Expand Down

0 comments on commit 4f903b8

Please sign in to comment.