| 1 |
From: Colin Watson <[email protected]> |
| 2 |
Date: Sun, 28 Jun 2026 17:39:07 +0100 |
| 3 |
Subject: Don't parameterize tests using non-Collection iterables |
| 4 |
|
| 5 |
This is deprecated as of pytest 9.1; see |
| 6 |
https://docs.pytest.org/en/stable/deprecations.html#class-scoped-fixture-as-instance-method. |
| 7 |
|
| 8 |
Bug-Debian: https://bugs.debian.org/1140932 |
| 9 |
Forwarded: https://github.com/urllib3/urllib3/pull/5094 |
| 10 |
Last-Update: 2026-06-28 |
| 11 |
--- |
| 12 |
test/test_util.py | 2 +- |
| 13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 |
|
| 15 |
diff --git a/test/test_util.py b/test/test_util.py |
| 16 |
index b01a857..2df9f36 100644 |
| 17 |
--- a/test/test_util.py |
| 18 |
+++ b/test/test_util.py |
| 19 |
@@ -307,7 +307,7 @@ class TestUtil: |
| 20 |
|
| 21 |
@pytest.mark.parametrize( |
| 22 |
"url, expected_url", |
| 23 |
- chain(parse_url_host_map, non_round_tripping_parse_url_host_map), |
| 24 |
+ list(chain(parse_url_host_map, non_round_tripping_parse_url_host_map)), |
| 25 |
) |
| 26 |
def test_parse_url(self, url: str, expected_url: Url) -> None: |
| 27 |
returned_url = parse_url(url) |