diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-12-04 03:45:21 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-12-04 03:45:21 +0000 |
commit | 2859d737f0c164e38771b014e597f22a37dd205b (patch) | |
tree | e7e4c4161feb21969e801f5d2ada576b610036c2 /python/python_test.go | |
parent | 2ba87f466c3af3ffdf2b925520c4d4e45a3f5aba (diff) | |
parent | d737d02f16651e99adf5bde3c43ad234165a023e (diff) |
Merge "Add comments/refactor for python.go"
Diffstat (limited to 'python/python_test.go')
-rw-r--r-- | python/python_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/python_test.go b/python/python_test.go index 64bc4f6b8..5c4efa763 100644 --- a/python/python_test.go +++ b/python/python_test.go @@ -44,7 +44,7 @@ var ( pkgPathErrTemplate = moduleVariantErrTemplate + "pkg_path: %q must be a relative path contained in par file." badIdentifierErrTemplate = moduleVariantErrTemplate + - "srcs: the path %q contains invalid token %q." + "srcs: the path %q contains invalid subpath %q." dupRunfileErrTemplate = moduleVariantErrTemplate + "found two files to be placed at the same location within zip %q." + " First file: in module %s at path %q." + @@ -370,7 +370,7 @@ func expectErrors(t *testing.T, actErrs []error, expErrs []string) (testErrs []e } else { sort.Strings(expErrs) for i, v := range actErrStrs { - if v != expErrs[i] { + if !strings.Contains(v, expErrs[i]) { testErrs = append(testErrs, errors.New(v)) } } |