aboutsummaryrefslogtreecommitdiff
path: root/time_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'time_test.go')
-rw-r--r--time_test.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/time_test.go b/time_test.go
index c002910..46a5ada 100644
--- a/time_test.go
+++ b/time_test.go
@@ -2,7 +2,6 @@ package pflag
import (
"fmt"
- "os"
"testing"
"time"
)
@@ -35,8 +34,6 @@ func TestTime(t *testing.T) {
{"Sat, 01 Jan 2022 01:01:01", false, time.Time{}},
}
- devnull, _ := os.Open(os.DevNull)
- os.Stderr = devnull
for i := range testCases {
var timeVar time.Time
formats := []string{time.RFC3339Nano, time.RFC1123Z}