diff --git a/flask/testsuite/helpers.py b/flask/testsuite/helpers.py index cc377587..3f822433 100644 --- a/flask/testsuite/helpers.py +++ b/flask/testsuite/helpers.py @@ -380,6 +380,7 @@ class SendfileTestCase(FlaskTestCase): rv = flask.send_from_directory('static', 'hello.txt') rv.direct_passthrough = False self.assert_equal(rv.get_data().strip(), b'Hello Subdomain') + rv.close() class LoggingTestCase(FlaskTestCase):