-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: Equality of joined URLs fails to be compared equal with a readymade URL object. #854
Comments
A git bisect reveals the regression was caused by 2dac93f. |
gbp is affected by a bug in yarl-1.9.1. aio-libs/yarl#854
I am seeing a significant regression as well: >>> from yarl import __version__, URL
>>> __version__
'1.9.1'
>>> (URL("http://0.0.0.0:1234/this/is/a/path")).raw_path
'/this/is/a/path'
>>> (URL("http://0.0.0.0:1234") / "this/is/a/path").raw_path
'this/is/a/path' the latter example is missing the leading slash. |
If I try to mangle path like |
I'd like to report an issue we are experiencing. We have Version 1.8.2
Version 1.9.1
|
Hi folks, thanks for reaching out! It would be useful if someone could submit a PR with a failing test for this per https://pganssle-talks.github.io/xfail-lightning/. I'm at the PyCon Sprints now and might have time to look into this. @mjpieters is this related to your changes? |
Looks like it as per git bisect, I'll prioritise this next. Hopefully today. |
That was always the intended, documented behaviour, it was a bug that it didn't actually do this before. Use an empty dictionary if you don't want the query to be reset. See #723 |
That was already the behaviour before and not a regression; it was an explicit choice to disallow this. |
I'm cutting release 1.9.2 to get this out asap. |
thanks @mjpieters! |
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 version1.9.1
. It used to returnTrue
in previous version.To Reproduce
Expected behavior
Should be equal
Logs/tracebacks
Python Version
multidict Version
yarl Version
OS
macOS
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: