xerrors: remove dependency on local path
Don't assume the test is located in a path ending in /golang.org/x/xerrors.
Change-Id: Ic16ba4447fc34b9f958fcae9870f331568b0fab8
Reviewed-on: https://go-review.googlesource.com/c/160697
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/fmt_test.go b/fmt_test.go
index e524285..8534c29 100644
--- a/fmt_test.go
+++ b/fmt_test.go
@@ -136,7 +136,7 @@
fmt: "%+v",
want: "something:" +
"\n golang.org/x/xerrors_test.TestErrorFormatter" +
- "\n .+/golang.org/x/xerrors/fmt_test.go:97" +
+ "\n .+/fmt_test.go:97" +
"\n something more",
regexp: true,
}, {