mirror of
https://github.com/golang/term.git
synced 2026-01-29 07:02:06 +03:00
term_test.go: replace io/ioutil with io and os package
Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
package term_test
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"runtime"
|
||||
"testing"
|
||||
@@ -14,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
func TestIsTerminalTempFile(t *testing.T) {
|
||||
file, err := ioutil.TempFile("", "TestIsTerminalTempFile")
|
||||
file, err := os.CreateTemp("", "TestIsTerminalTempFile")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user