aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding')
-rw-r--r--src/encoding/base32/base32_test.go1
-rw-r--r--src/encoding/xml/marshal_test.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/encoding/base32/base32_test.go b/src/encoding/base32/base32_test.go
index f5d3c49e38..6f8d564def 100644
--- a/src/encoding/base32/base32_test.go
+++ b/src/encoding/base32/base32_test.go
@@ -709,7 +709,6 @@ func TestBufferedDecodingPadding(t *testing.T) {
}
for _, testcase := range testcases {
- testcase := testcase
pr, pw := io.Pipe()
go func() {
for _, chunk := range testcase.chunks {
diff --git a/src/encoding/xml/marshal_test.go b/src/encoding/xml/marshal_test.go
index b8bce7170a..6c7e711aac 100644
--- a/src/encoding/xml/marshal_test.go
+++ b/src/encoding/xml/marshal_test.go
@@ -2561,7 +2561,6 @@ var closeTests = []struct {
func TestClose(t *testing.T) {
for _, tt := range closeTests {
- tt := tt
t.Run(tt.desc, func(t *testing.T) {
var out strings.Builder
enc := NewEncoder(&out)