Title: Rooted flag still causing serialization oddities · Issue #111 · python-hyper/hyperlink · GitHub
Open Graph Title: Rooted flag still causing serialization oddities · Issue #111 · python-hyper/hyperlink
X Title: Rooted flag still causing serialization oddities · Issue #111 · python-hyper/hyperlink
Description: I thought this was the same bug as #90, but @glyph's #91 didn't fix it, so I guess it's at least slightly distinct. _________ TestURL.test_reproduce_my_rooted_oddity _________ self = Open Graph Description: I thought this was the same bug as #90, but @glyph's #91 didn't fix it, so I guess it's at least slightly distinct. _________ TestURL.test_reproduce_my_rooted_oddity _________ self = X Description: I thought this was the same bug as #90, but @glyph's #91 didn't fix it, so I guess it's at least slightly distinct. _________ TestURL.test_reproduce_my_rooted_oddity _________ self = &l...
Opengraph URL: https://github.com/python-hyper/hyperlink/issues/111
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rooted flag still causing serialization oddities","articleBody":"I thought this was the same bug as #90, but @glyph's #91 didn't fix it, so I guess it's at least slightly distinct.\r\n\r\n```\r\n_________ TestURL.test_reproduce_my_rooted_oddity _________\r\n\r\nself = \u003chyperlink.test.test_url.TestURL testMethod=test_reproduce_my_rooted_oddity>\r\n\r\n def test_reproduce_my_rooted_oddity(self):\r\n a = URL(scheme='udp', port=4900)\r\n b = URL.from_text('udp://:4900')\r\n assert str(a) == str(b)\r\n assert a.asText() == b.asText()\r\n> assert a == b\r\nE AssertionError: assert URL.from_text('udp://:4900') == URL.from_text('udp://:4900')\r\nE -URL.from_text('udp://:4900')\r\nE +URL.from_text('udp://:4900')\r\n\r\nsrc/hyperlink/test/test_url.py:1101: AssertionError\r\n```\r\n\r\nThat assertion error is *entertainingly* befuddling 😃 \r\n\r\nAfter a cursory inspection of `a` and `b` there, the only differences I found in the instance `__dict__` were `_rooted` and `_uses_netloc`.\r\n\r\nThe same failure happens with `URL(scheme='udp', host='', port=4900)`, but doing `URL(scheme='udp', port=4900, rooted=True)` (with or without `host`) makes the test pass.\r\n\r\n(this was tested on 688233a2fccc470f8c822ccf91ea53ec03d1e427)","author":{"url":"https://github.com/cdunklau","@type":"Person","name":"cdunklau"},"datePublished":"2020-02-14T10:01:50Z","url":"https://github.com/python-hyper/hyperlink/issues/111"}
react-profiling 0 react-import-map react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:c841cb0f-ac53-f7b7-9237-2ba7f0b6d880 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 8B4C:E59CC:D87F83:1312528:6B06F0AE html-safe-nonce 1858031344ad9519c152720c31db6cad1a7059b3ff2173f75951f3d77aa92d61 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjRDOkU1OUNDOkQ4N0Y4MzoxMzEyNTI4OjZCMDZGMEFFIiwidmlzaXRvcl9pZCI6IjExOTE3NTA4MTUzNzE5NDgyMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 3d879f1c961ab782d565ec16bd6d2bfa5d249680c93dd6277cee6880272c6ed6 hovercard-subject-tag issue:565222816 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-hyper/hyperlink/111/issue_layout twitter:image https://opengraph.githubassets.com/b9839adc65b095648c98bb041de2c19279b222a1f6516e233f84a7b6eb50a961/python-hyper/hyperlink/issues/111 twitter:card summary_large_image og:image https://opengraph.githubassets.com/b9839adc65b095648c98bb041de2c19279b222a1f6516e233f84a7b6eb50a961/python-hyper/hyperlink/issues/111 og:image:alt I thought this was the same bug as #90, but @glyph's #91 didn't fix it, so I guess it's at least slightly distinct. _________ TestURL.test_reproduce_my_rooted_oddity _________ self = og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username cdunklau hostname github.com expected-hostname github.com None 351ea5ca38a5758919d44ee52c70fe9003c0c2dfa20f04effd7fac0c5330c16b turbo-cache-control no-preview go-import github.com/python-hyper/hyperlink git https://github.com/python-hyper/hyperlink.git octolytics-dimension-user_id 13035907 octolytics-dimension-user_login python-hyper octolytics-dimension-repository_id 82321340 octolytics-dimension-repository_nwo python-hyper/hyperlink octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 82321340 octolytics-dimension-repository_network_root_nwo python-hyper/hyperlink turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 891bde3f438884e9c6c7ccd826f33805910a978b ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
Response headers:
Server github.com Content-Type text/html; charset=utf-8 Cache-Control max-age=0, private, must-revalidate
URLs of crawlers that visited me.