Skip to content

Commit 7ef2946

Browse files
authored
remove unicode host test (pallets#5962)
2 parents 4cae5d8 + 91c6b3f commit 7ef2946

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

tests/test_reqctx.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -294,27 +294,6 @@ def test_bad_environ_raises_bad_request():
294294
assert response.status_code == 400
295295

296296

297-
def test_environ_for_valid_idna_completes():
298-
app = flask.Flask(__name__)
299-
300-
@app.route("/")
301-
def index():
302-
return "Hello World!"
303-
304-
from flask.testing import EnvironBuilder
305-
306-
builder = EnvironBuilder(app)
307-
environ = builder.get_environ()
308-
309-
# these characters are all IDNA-compatible
310-
environ["HTTP_HOST"] = "ąśźäüжŠßя.com"
311-
312-
with app.request_context(environ) as ctx:
313-
response = app.full_dispatch_request(ctx)
314-
315-
assert response.status_code == 200
316-
317-
318297
def test_normal_environ_completes():
319298
app = flask.Flask(__name__)
320299

0 commit comments

Comments
 (0)