-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: always use the same python regardless of $PATH #547
Problem: The embedded neovim fixture instance for testing picks up `python3` on the `$PATH`. This can be different from the current python. (Example) $ which python3 /usr/local/bin/python3 $ which python3.11 $HOME/.pyenvs/versions/3.11.5/bin/python3.11 $ python3.11 -m pytest then neovim will have `/usr/local/bin/python3` as the python3 host (however should be `python3.11`), so the behavior of `:python` and the `pynvim` module especially when it has local changes during development) can be different. Solution: The embedded nvim instance should always pin `g:python3_host_prog` to `sys.executable`.
- Loading branch information
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters