forked from orbit-oss/flask
remove more compat code
This commit is contained in:
parent
662c245795
commit
57d628ca74
9 changed files with 37 additions and 89 deletions
|
|
@ -285,10 +285,6 @@ def test_session_dynamic_cookie_name():
|
|||
def test_bad_environ_raises_bad_request():
|
||||
app = flask.Flask(__name__)
|
||||
|
||||
# We cannot use app.test_client() for the Unicode-rich Host header,
|
||||
# because werkzeug enforces latin1 on Python 2.
|
||||
# However it works when actually passed to the server.
|
||||
|
||||
from flask.testing import EnvironBuilder
|
||||
|
||||
builder = EnvironBuilder(app)
|
||||
|
|
@ -309,10 +305,6 @@ def test_environ_for_valid_idna_completes():
|
|||
def index():
|
||||
return "Hello World!"
|
||||
|
||||
# We cannot use app.test_client() for the Unicode-rich Host header,
|
||||
# because werkzeug enforces latin1 on Python 2.
|
||||
# However it works when actually passed to the server.
|
||||
|
||||
from flask.testing import EnvironBuilder
|
||||
|
||||
builder = EnvironBuilder(app)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue