forked from orbit-oss/flask
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:
parent
c2e5799879
commit
a15c6c569a
1 changed files with 1 additions and 1 deletions
|
|
@ -8,13 +8,13 @@
|
||||||
:copyright: (c) 2011 by Armin Ronacher.
|
:copyright: (c) 2011 by Armin Ronacher.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import with_statement
|
||||||
import flask
|
import flask
|
||||||
import flask.views
|
import flask.views
|
||||||
import unittest
|
import unittest
|
||||||
from flask.testsuite import FlaskTestCase
|
from flask.testsuite import FlaskTestCase
|
||||||
from werkzeug.http import parse_set_header
|
from werkzeug.http import parse_set_header
|
||||||
|
|
||||||
|
|
||||||
class ViewTestCase(FlaskTestCase):
|
class ViewTestCase(FlaskTestCase):
|
||||||
|
|
||||||
def common_test(self, app):
|
def common_test(self, app):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue