Skip to content

Commit

Permalink
term_test.go: replace io/ioutil with io and os package
Browse files Browse the repository at this point in the history
For golang/go#45557

Change-Id: I27cfebf64dd4597e3f00ea3fbb32d670619b5c45
GitHub-Last-Rev: 4c4433c
GitHub-Pull-Request: #9
Reviewed-on: https://go-review.googlesource.com/c/term/+/430798
Run-TryBot: Ian Lance Taylor <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Cherry Mui <[email protected]>
  • Loading branch information
cuishuang authored and gopherbot committed Sep 19, 2022
1 parent a9ba230 commit 7a66f97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions term_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package term_test

import (
"io/ioutil"
"os"
"runtime"
"testing"
Expand All @@ -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)
}
Expand Down

0 comments on commit 7a66f97

Please sign in to comment.