Fix broken test
This commit is contained in:
parent
265acaefe5
commit
95daaa8cec
|
@ -181,7 +181,8 @@ func (host *pythonLanguageHost) Run(ctx context.Context, req *pulumirpc.RunReque
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf(
|
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...)
|
cmd := exec.Command(pythonPath, args...)
|
||||||
|
|
|
@ -1149,8 +1149,8 @@ func TestPython3NotInstalled(t *testing.T) {
|
||||||
stderr := &bytes.Buffer{}
|
stderr := &bytes.Buffer{}
|
||||||
badPython := "python3000"
|
badPython := "python3000"
|
||||||
expectedError := fmt.Sprintf(
|
expectedError := fmt.Sprintf(
|
||||||
"error: Failed to locate '%s' on your PATH. Have you installed Python 3.6 or greater?",
|
"error: Failed to locate any of %q on your PATH. Have you installed Python 3.6 or greater?",
|
||||||
badPython)
|
[]string{badPython})
|
||||||
integration.ProgramTest(t, &integration.ProgramTestOptions{
|
integration.ProgramTest(t, &integration.ProgramTestOptions{
|
||||||
Dir: path.Join("empty", "python"),
|
Dir: path.Join("empty", "python"),
|
||||||
Dependencies: []string{
|
Dependencies: []string{
|
||||||
|
|
Loading…
Reference in a new issue