Skip to content

Commit

Permalink
Properly close main window in fixture
Browse files Browse the repository at this point in the history
This mirrors the changes in PR spyder-ide/spyder#21353
  • Loading branch information
jitseniesen committed Apr 12, 2024
1 parent defdcbf commit 929d53a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spyder_unittest/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,15 @@ def main_window(monkeypatch):
CONF.set('tours', 'show_tour_message', False)
QApplication.processEvents()

# Reset global state
dependencies.DEPENDENCIES = []
PLUGIN_REGISTRY.reset()

# Start the window
window = start.main()
QApplication.processEvents()

yield window

# Close main window
window.closing(close_immediately=True)
window.close()
CONF.reset_to_defaults(notification=False)
CONF.reset_manager()
PLUGIN_REGISTRY.reset()

0 comments on commit 929d53a

Please sign in to comment.