aboutsummaryrefslogtreecommitdiffhomepage
path: root/cgo/cgo_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cgo/cgo_test.go')
-rw-r--r--cgo/cgo_test.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/cgo/cgo_test.go b/cgo/cgo_test.go
index c542df7fd..ffc8bb01f 100644
--- a/cgo/cgo_test.go
+++ b/cgo/cgo_test.go
@@ -5,7 +5,6 @@ import (
"flag"
"fmt"
"go/ast"
- "go/build"
"go/format"
"go/parser"
"go/token"
@@ -40,20 +39,6 @@ func TestCGo(t *testing.T) {
} {
name := name // avoid a race condition
t.Run(name, func(t *testing.T) {
- // Skip tests that require specific Go version.
- if name == "errors" {
- ok := false
- for _, version := range build.Default.ReleaseTags {
- if version == "go1.16" {
- ok = true
- break
- }
- }
- if !ok {
- t.Skip("Results for errors test are only valid for Go 1.16+")
- }
- }
-
// Read the AST in memory.
path := filepath.Join("testdata", name+".go")
fset := token.NewFileSet()