Skip to content

Commit c428d23

Browse files
author
Randall C. O'Reilly
committed
fix TestGoPyErrors
1 parent 78eed8b commit c428d23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ func TestGoPyErrors(t *testing.T) {
116116
t.Fatalf("could not run %v: %+v\n", strings.Join(cmd.Args, " "), err)
117117
}
118118
contains := `--- Processing package: github.com/go-python/gopy/_examples/gopyerrors ---
119-
ignoring python incompatible function: gopyerrors.func github.com/go-python/gopy/_examples/gopyerrors.NotErrorMany() (int, int): func() (int, int): gopy: second result value must be of type error: func() (int, int)
119+
ignoring python incompatible function: .func github.com/go-python/gopy/_examples/gopyerrors.NotErrorMany() (int, int): func() (int, int): gopy: second result value must be of type error: func() (int, int)
120120
ignoring python incompatible method: gopyerrors.func (*github.com/go-python/gopy/_examples/gopyerrors.Struct).NotErrorMany() (int, string): func() (int, string): gopy: second result value must be of type error: func() (int, string)
121121
ignoring python incompatible method: gopyerrors.func (*github.com/go-python/gopy/_examples/gopyerrors.Struct).TooMany() (int, int, string): func() (int, int, string): gopy: too many results to return: func() (int, int, string)
122-
ignoring python incompatible function: gopyerrors.func github.com/go-python/gopy/_examples/gopyerrors.TooMany() (int, int, string): func() (int, int, string): gopy: too many results to return: func() (int, int, string)
122+
ignoring python incompatible function: .func github.com/go-python/gopy/_examples/gopyerrors.TooMany() (int, int, string): func() (int, int, string): gopy: too many results to return: func() (int, int, string)
123123
`
124124
if got, want := string(out), contains; !strings.Contains(got, want) {
125-
t.Fatalf("%v does not contain %v\n", got, want)
125+
t.Fatalf("%v does not contain\n%v\n", got, want)
126126
}
127127
}
128128

0 commit comments

Comments
 (0)