Skip to content

Commit 09e2f23

Browse files
Copilotdiraol
andauthored
test: normalize expected virtualenv path in run command test
Agent-Logs-Url: https://github.com/python-mode/python-mode/sessions/990a6238-68c1-475c-b384-5afbd8f07a7f Co-authored-by: diraol <192702+diraol@users.noreply.github.com>
1 parent 593ac51 commit 09e2f23

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/vader/commands.vader

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Execute (Test PymodeRun uses active virtualenv python):
109109
execute 'buffer ' . run_buffer
110110
let run_output = substitute(join(getline(1, '$'), "\n"), '\\', '/', 'g')
111111
let expected_python = has('win32') || has('win64') ? venv_dir . '/Scripts/python.exe' : venv_dir . '/bin/python'
112+
let expected_python = substitute(expected_python, '\\', '/', 'g')
112113
Assert stridx(run_output, expected_python) >= 0, 'PymodeRun should execute with virtualenv python executable'
113114
else
114115
Assert 0, 'PymodeRun should create run buffer when using virtualenv'

0 commit comments

Comments
 (0)