diff options
Diffstat (limited to 'src/pkg/html/parse_test.go')
| -rw-r--r-- | src/pkg/html/parse_test.go | 8 | 
1 files changed, 1 insertions, 7 deletions
| diff --git a/src/pkg/html/parse_test.go b/src/pkg/html/parse_test.go index fe955436c..3fa35d5db 100644 --- a/src/pkg/html/parse_test.go +++ b/src/pkg/html/parse_test.go @@ -15,12 +15,6 @@ import (  	"testing"  ) -type devNull struct{} - -func (devNull) Write(p []byte) (int, os.Error) { -	return len(p), nil -} -  func pipeErr(err os.Error) io.Reader {  	pr, pw := io.Pipe()  	pw.CloseWithError(err) @@ -141,7 +135,7 @@ func TestParser(t *testing.T) {  				t.Fatal(err)  			}  			// Skip the #error section. -			if _, err := io.Copy(devNull{}, <-rc); err != nil { +			if _, err := io.Copy(ioutil.Discard, <-rc); err != nil {  				t.Fatal(err)  			}  			// Compare the parsed tree to the #document section. | 
