aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd/go/internal/load/test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/go/internal/load/test.go b/src/cmd/go/internal/load/test.go
index f6ba994260..c247d56c81 100644
--- a/src/cmd/go/internal/load/test.go
+++ b/src/cmd/go/internal/load/test.go
@@ -626,8 +626,7 @@ func checkTestFunc(fn *ast.FuncDecl, arg string) error {
var testinginitTmpl = lazytemplate.New("init", `
package {{.Name}}
-{{/* Avoid a name collision with a name "testing" in user code. */}}
-import testing_xxxxxxxxxxxx "testing"
+import _go_testing "testing"
{{/*
Call testing.Init before any other user initialization code runs.
@@ -636,7 +635,7 @@ This provides the illusion of the old behavior where testing flags
were registered as part of the testing package's initialization.
*/}}
var _ = func() bool {
- testing_xxxxxxxxxxxx.Init()
+ _go_testing.Init()
return true
}()
`)