Skip to content

Test suite fails with Python 3.8.1 #503

Closed
@Ma27

Description

@Ma27

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions