From 91c6b3fecf36b1f04554e57cc4060ccb737a445d Mon Sep 17 00:00:00 2001 From: David Lord Date: Tue, 24 Mar 2026 06:47:30 -0700 Subject: [PATCH] remove unicode host test --- tests/test_reqctx.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/tests/test_reqctx.py b/tests/test_reqctx.py index 78561f52..3c5d5332 100644 --- a/tests/test_reqctx.py +++ b/tests/test_reqctx.py @@ -294,27 +294,6 @@ def test_bad_environ_raises_bad_request(): assert response.status_code == 400 -def test_environ_for_valid_idna_completes(): - app = flask.Flask(__name__) - - @app.route("/") - def index(): - return "Hello World!" - - from flask.testing import EnvironBuilder - - builder = EnvironBuilder(app) - environ = builder.get_environ() - - # these characters are all IDNA-compatible - environ["HTTP_HOST"] = "ąśźäüжŠßя.com" - - with app.request_context(environ) as ctx: - response = app.full_dispatch_request(ctx) - - assert response.status_code == 200 - - def test_normal_environ_completes(): app = flask.Flask(__name__)