From 724a86fcede55d0e80da4a779ef64a2eb5d235a8 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 27 Feb 2019 20:08:36 +0000 Subject: context: don't depend on fmt So the net package doesn't indirectly depend on unicode tables. But we're still not quite there, because a new test added in this CL reveals that we still have a path to unicode via: deps_test.go:570: TODO(issue 30440): policy violation: net => sort => reflect => unicode Updates #30440 Change-Id: I710c2061dfbaa8e866c92e6c824bd8df35784165 Reviewed-on: https://go-review.googlesource.com/c/go/+/169080 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- src/context/context_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/context/context_test.go') diff --git a/src/context/context_test.go b/src/context/context_test.go index f73f2837b8..0cec169915 100644 --- a/src/context/context_test.go +++ b/src/context/context_test.go @@ -343,7 +343,7 @@ func XTestValues(t testingT) { c1 := WithValue(Background(), k1, "c1k1") check(c1, "c1", "c1k1", "", "") - if got, want := fmt.Sprint(c1), `context.Background.WithValue(1, "c1k1")`; got != want { + if got, want := fmt.Sprint(c1), `context.Background.WithValue(type context.key1, val c1k1)`; got != want { t.Errorf("c.String() = %q want %q", got, want) } -- cgit v1.3