forked from orbit-oss/flask
Merge branch 'six' of github.com:ThomasWaldmann/flask into ThomasWaldmann-six
Conflicts: flask/testsuite/__init__.py
This commit is contained in:
commit
8494574fdf
13 changed files with 42 additions and 19 deletions
|
|
@ -18,6 +18,7 @@ from flask.testsuite import FlaskTestCase, emits_module_deprecation_warning
|
|||
from werkzeug.exceptions import NotFound
|
||||
from werkzeug.http import parse_cache_control_header
|
||||
from jinja2 import TemplateNotFound
|
||||
import six
|
||||
|
||||
|
||||
# import moduleapp here because it uses deprecated features and we don't
|
||||
|
|
@ -304,7 +305,7 @@ class BlueprintTestCase(FlaskTestCase):
|
|||
|
||||
@bp.route('/bar')
|
||||
def bar(bar):
|
||||
return unicode(bar)
|
||||
return six.text_type(bar)
|
||||
|
||||
app = flask.Flask(__name__)
|
||||
app.register_blueprint(bp, url_prefix='/1', url_defaults={'bar': 23})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue