From: Colin Watson Date: Sun, 28 Jun 2026 17:39:07 +0100 Subject: Don't parameterize tests using non-Collection iterables This is deprecated as of pytest 9.1; see https://docs.pytest.org/en/stable/deprecations.html#class-scoped-fixture-as-instance-method. Bug-Debian: https://bugs.debian.org/1140932 Forwarded: https://github.com/urllib3/urllib3/pull/5094 Last-Update: 2026-06-28 --- test/test_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_util.py b/test/test_util.py index b01a857..2df9f36 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -307,7 +307,7 @@ class TestUtil: @pytest.mark.parametrize( "url, expected_url", - chain(parse_url_host_map, non_round_tripping_parse_url_host_map), + list(chain(parse_url_host_map, non_round_tripping_parse_url_host_map)), ) def test_parse_url(self, url: str, expected_url: Url) -> None: returned_url = parse_url(url)