Skip to content

Commit 3304ac2

Browse files
committed
tests/test_parse_qs.py: remove unused test to make mypy ok
mypy was complaining about this test which has been already skipped unconditionally as it was throwing deprecation warnings. With werkzeug 3.0.0 this attribute is no longer defined so that makes mypy to fail, and it was the easiest to remove the test case.
1 parent 4f9667d commit 3304ac2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/test_parse_qs.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from typing import Tuple
44

55
import pytest
6-
import werkzeug.urls
7-
from werkzeug.datastructures import MultiDict
86

97
parse_qsl_semicolon_cases = [
108
("&", []),
@@ -22,9 +20,3 @@
2220
@pytest.mark.parametrize("qs,expected", parse_qsl_semicolon_cases)
2321
def test_qsl(qs: str, expected: List[Tuple[bytes, bytes]]):
2422
assert urllib.parse.parse_qsl(qs, keep_blank_values=True) == expected
25-
26-
27-
@pytest.mark.skip(reason="skipped to avoid werkzeug warnings")
28-
@pytest.mark.parametrize("qs,expected", parse_qsl_semicolon_cases)
29-
def test_qsl_werkzeug(qs: str, expected: List[Tuple[bytes, bytes]]):
30-
assert werkzeug.urls.url_decode(qs) == MultiDict(expected)

0 commit comments

Comments
 (0)