diff --git a/werkzeug/testsuite/test.py b/werkzeug/testsuite/test.py
index <HASH>..<HASH> 100644
--- a/werkzeug/testsuite/test.py
+++ b/werkzeug/testsuite/test.py
@@ -216,6 +216,7 @@ class TestTestCase(WerkzeugTestCase):
                                     'CONTENT_TYPE': 'multipart/form-data; boundary="%s"' %
                                     boundary})[1]
             self.assert_strict_equal(form, d)
+            stream.close()
 
     def test_create_environ(self):
         env = create_environ('/foo?bar=baz', 'http://example.org/')
Don't leak fd in test_environ_builder_stream_switch