Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d15848d

Browse files
committed
Remove unnecessary time test stderr dev null redirect
1 parent c5ce22e commit d15848d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

time_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package pflag
22

33
import (
44
"fmt"
5-
"os"
65
"testing"
76
"time"
87
)
@@ -35,8 +34,6 @@ func TestTime(t *testing.T) {
3534
{"Sat, 01 Jan 2022 01:01:01", false, time.Time{}},
3635
}
3736

38-
devnull, _ := os.Open(os.DevNull)
39-
os.Stderr = devnull
4037
for i := range testCases {
4138
var timeVar time.Time
4239
formats := []string{time.RFC3339Nano, time.RFC1123Z}

0 commit comments

Comments
 (0)