diff options
| author | Rob Pike <r@golang.org> | 2013-08-04 09:06:14 +1000 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2013-08-04 09:06:14 +1000 |
| commit | 7d4ea6cc9edf75199c72a42cfa3481f0e98f5d89 (patch) | |
| tree | baeacb5eb589b381d08b571193e1d988b6e6a98d /src/pkg/html | |
| parent | 53d9b6fcf3d459c2e550238502b499c462983329 (diff) | |
| download | go-7d4ea6cc9edf75199c72a42cfa3481f0e98f5d89.tar.xz | |
html/template: delete panic recovery code from test
The test isn't checking deliberate panics so catching them just makes the code longer.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12420043
Diffstat (limited to 'src/pkg/html')
| -rw-r--r-- | src/pkg/html/template/content_test.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pkg/html/template/content_test.go b/src/pkg/html/template/content_test.go index da1eb5c376..5e130faacb 100644 --- a/src/pkg/html/template/content_test.go +++ b/src/pkg/html/template/content_test.go @@ -264,12 +264,6 @@ func TestStringer(t *testing.T) { func TestEscapingNilNonemptyInterfaces(t *testing.T) { tmpl := Must(New("x").Parse("{{.E}}")) - defer func() { - if r := recover(); r != nil { - t.Errorf("panic during template execution: %v", r) - } - }() - got := new(bytes.Buffer) testData := struct{ E error }{} // any non-empty interface here will do; error is just ready at hand tmpl.Execute(got, testData) |
