Fix broken test

This commit is contained in:
Luke Hoban 2019-12-21 06:51:42 -08:00
parent 265acaefe5
commit 95daaa8cec
2 changed files with 4 additions and 3 deletions

View file

@ -181,7 +181,8 @@ func (host *pythonLanguageHost) Run(ctx context.Context, req *pulumirpc.RunReque
}
if err != nil {
return nil, fmt.Errorf(
"Failed to locate any of '%v' on your PATH. Have you installed Python 3.6 or greater?", pythonCmds)
"Failed to locate any of %q on your PATH. Have you installed Python 3.6 or greater?",
pythonCmds)
}
cmd := exec.Command(pythonPath, args...)

View file

@ -1149,8 +1149,8 @@ func TestPython3NotInstalled(t *testing.T) {
stderr := &bytes.Buffer{}
badPython := "python3000"
expectedError := fmt.Sprintf(
"error: Failed to locate '%s' on your PATH. Have you installed Python 3.6 or greater?",
badPython)
"error: Failed to locate any of %q on your PATH. Have you installed Python 3.6 or greater?",
[]string{badPython})
integration.ProgramTest(t, &integration.ProgramTestOptions{
Dir: path.Join("empty", "python"),
Dependencies: []string{