The builder on github is using python 2.5, the views.py testsuite uses the with

statement, and thus flask/testsuite/views.py requires

from __future__ import with_statement

at the beginning.
This commit is contained in:
Mitchell Peabody 2012-10-16 16:57:57 -04:00
parent c2e5799879
commit a15c6c569a

View file

@ -8,13 +8,13 @@
:copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
from __future__ import with_statement
import flask
import flask.views
import unittest
from flask.testsuite import FlaskTestCase
from werkzeug.http import parse_set_header
class ViewTestCase(FlaskTestCase):
def common_test(self, app):