forked from neovim/pynvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: always use the same exact python executable regardless of $PATH
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 $ python3.11 -m pytest then neovim will have `/usr/local/bin/python3` as the python3 host, so the behavior of `:python` (and `pynvim` 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