Closed
Description
This happens since urllib.parse
parses URLs like path:80
as scheme=path,path=80
(https://bugs.python.org/issue27657).
Which causes errors like this:
def test_uri_value_allowed_protocols(data, kwargs, expected):
> assert clean(data, **kwargs) == expected
E assert '<a>valid</a>' == '<a href="192...00">valid</a>'
E - <a>valid</a>
E + <a href="192.168.100.100:8000">valid</a>
tests/test_clean.py:676: AssertionError
Currently preparing a patch for this :)
Metadata
Metadata
Assignees
Labels
No labels