Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(tests): "provider#python3#Prog" was removed upstream #563

Merged
merged 1 commit into from
Mar 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions test/test_vim.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,11 @@ def test_hash(vim: Nvim) -> None:

def test_python3(vim: Nvim) -> None:
"""Tests whether python3 host can load."""
python3_prog = vim.command_output('echom provider#python3#Prog()')
python3_err = vim.command_output('echom provider#python3#Error()')
assert python3_prog != "", python3_err
assert python3_prog == sys.executable
rv = vim.exec_lua('''
local prog, err = vim.provider.python.detect_by_module("neovim")
return { prog = prog, err = err }''')
assert rv['prog'] != "", rv['err']
assert rv['prog'] == sys.executable

assert sys.executable == vim.command_output(
'python3 import sys; print(sys.executable)')
Expand Down
Loading