From c428d2365035cdc0af929f5364c2bcc1db57aa81 Mon Sep 17 00:00:00 2001 From: "Randall C. O'Reilly" Date: Sun, 29 Aug 2021 12:43:54 -0700 Subject: [PATCH] fix TestGoPyErrors --- main_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main_test.go b/main_test.go index 7772f99..8837ab8 100644 --- a/main_test.go +++ b/main_test.go @@ -116,13 +116,13 @@ func TestGoPyErrors(t *testing.T) { t.Fatalf("could not run %v: %+v\n", strings.Join(cmd.Args, " "), err) } contains := `--- Processing package: github.com/go-python/gopy/_examples/gopyerrors --- -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) +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) 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) 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) -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) +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) ` if got, want := string(out), contains; !strings.Contains(got, want) { - t.Fatalf("%v does not contain %v\n", got, want) + t.Fatalf("%v does not contain\n%v\n", got, want) } }