From: Pieter Lenaerts <plenae@disroot.org>
Date: Sun, 13 Sep 2026 08:07:17 +0200
Subject: Fix test with transitional host normalization

UTS#46 has deprecated transitional hostname processing, so idna no
longer supports the transitional argument to encode(). idna now
ignores the argument, no longer returns IDNA2003 result but returns
IDNA2008 result.

Origin: backport, https://github.com/niksite/url-normalize/pull/42/changes#diff-42b168b1b2aa56197bae4f75ce04e18a2651d5eba4ff13d80b7a4b104998226a
Forwarded: not-needed
---
 tests/test_normalize_host.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_normalize_host.py b/tests/test_normalize_host.py
index 2dce3e3..713bf1a 100644
--- a/tests/test_normalize_host.py
+++ b/tests/test_normalize_host.py
@@ -17,7 +17,7 @@ from url_normalize.url_normalize import normalize_host
         # Mixed case with Cyrillic
         ("ExAmPle.РФ", "example.xn--p1ai"),
         # IDNA2008 with UTS46
-        ("faß.de", "fass.de"),  # Normalize using transitional rules
+        ("faß.de", "xn--fa-hia.de"),
         # Edge cases
         ("ドメイン.テスト", "xn--eckwd4c7c.xn--zckzah"),  # Japanese
         ("domain.café", "domain.xn--caf-dma"),  # Latin with diacritic
