mirror of
https://github.com/gonum/gonum.git
synced 2025-10-07 16:11:03 +08:00
all: replace uses of deprecated ioutil functions
This commit is contained in:
@@ -13,7 +13,6 @@ package parser_test
|
||||
import (
|
||||
"archive/zip"
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
@@ -74,7 +73,7 @@ func TestParseFile(t *testing.T) {
|
||||
if len(g.out) > 0 {
|
||||
out = g.out
|
||||
}
|
||||
buf, err := ioutil.ReadFile(out)
|
||||
buf, err := os.ReadFile(out)
|
||||
if err != nil {
|
||||
t.Errorf("%q: unable to read file; %v", g.in, err)
|
||||
continue
|
||||
|
Reference in New Issue
Block a user