From 777cc17de34622a7f8324a3ce42fbc589d86476b Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Sat, 25 Nov 2017 00:53:43 +0100 Subject: [PATCH] Fix broken test --- tests/test_helpers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_helpers.py b/tests/test_helpers.py index 066f36879d..d497c40dc1 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -571,6 +571,10 @@ def test_send_file_range_request_xsendfile_invalid(self, app, client): # https://github.com/pallets/flask/issues/2526 app.use_x_sendfile = True + @app.route('/') + def index(): + return flask.send_file('static/index.html', conditional=True) + rv = client.get('/', headers={'Range': 'bytes=1000-'}) assert rv.status_code == 416 rv.close()