diff options
-rwxr-xr-x | src/cmd/gotest/gotest | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest index c4c8e1a9e..212abbf75 100755 --- a/src/cmd/gotest/gotest +++ b/src/cmd/gotest/gotest @@ -107,7 +107,9 @@ importpath=$(make -s importpath) echo # imports if echo "$tests" | egrep -v '_test\.' >/dev/null; then - echo 'import "'$importpath'"' + if [ "$importpath" != "testing" ]; then + echo 'import "'$importpath'"' + fi fi if $havex; then echo 'import "./_xtest_"' |