Skip to content

Regression: Equality of joined URLs fails to be compared equal with a readymade URL object. #854

@gmichaeljaison

Description

@gmichaeljaison

Describe the bug

Equality of joined URLs fails to be compared equal with a readymade URL object.

The following code returns False in the latest release version 1.9.1. It used to return True in previous version.

(yarl.URL("https://hello.com") / "world") == yarl.URL("https://hello.com/world")

To Reproduce

(yarl.URL("https://hello.com") / "world") == yarl.URL("https://hello.com/world")

Expected behavior

Should be equal

Logs/tracebacks

(yarl.URL("https://hello.com") / "world") == yarl.URL("https://hello.com/world")

False

Python Version

$ python --version
3.8+

multidict Version

$ python -m pip show multidict
Name: multidict
Version: 6.0.2
Required-by: httpie, yarl

yarl Version

$ python -m pip show yarl
1.9.1

OS

macOS

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions