sublimelsp / LSP

Client implementation of the Language Server Protocol for Sublime Text
https://lsp.sublimetext.io/
MIT License
1.61k stars 182 forks source link

Fix failing python 3.8 unittests on MacOS #2436

Closed deathaxe closed 2 months ago

deathaxe commented 2 months ago

This commit adopts unittesting.ViewTestCase to run view related test cases.

ViewTestCase ...

  1. provides view and window members pointing to a dedicated view, being created for testing.
  2. ensures not to close empty windows, which was probably the most likely reason for unittests failing before on MacOS.
deathaxe commented 2 months ago

Note: Various test cases don't seem to properly create dedicated windows for testing.

I therefore managed to destroy my open workspace due to running LSP unittests locally.