Title: PathName2URLTests fail with Python 3.12.9 · Issue #647 · PythonCharmers/python-future · GitHub
Open Graph Title: PathName2URLTests fail with Python 3.12.9 · Issue #647 · PythonCharmers/python-future
X Title: PathName2URLTests fail with Python 3.12.9 · Issue #647 · PythonCharmers/python-future
Description: some changes between Python 3.12.2 and 3.12.9 cause the following tests to fail on Alpine Linux edge with python-future 1.0.0: ____________ URL2PathNameTests.test_converting_when_no_drive_letter ____________ self = Open Graph Description: some changes between Python 3.12.2 and 3.12.9 cause the following tests to fail on Alpine Linux edge with python-future 1.0.0: ____________ URL2PathNameTests.test_converting_when_no_drive_letter __...
X Description: some changes between Python 3.12.2 and 3.12.9 cause the following tests to fail on Alpine Linux edge with python-future 1.0.0: ____________ URL2PathNameTests.test_converting_when_no_drive_letter __...
Opengraph URL: https://github.com/PythonCharmers/python-future/issues/647
X: @github
Domain: patch-diff.githubusercontent.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PathName2URLTests fail with Python 3.12.9","articleBody":"some changes between Python 3.12.2 and 3.12.9 cause the following tests to fail on Alpine Linux edge with `python-future` 1.0.0:\n\n```\n____________ URL2PathNameTests.test_converting_when_no_drive_letter ____________\n\nself = \u003ctest_future.test_urllib.URL2PathNameTests testMethod=test_converting_when_no_drive_letter\u003e\n\n def test_converting_when_no_drive_letter(self):\n # cannot end a raw string in \\\n\u003e self.assertEqual(url2pathname(\"///C/test/\"), r'\\\\\\C\\test' '\\\\')\nE AssertionError: '\\\\C\\\\test\\\\' != '\\\\\\\\\\\\C\\\\test\\\\'\nE - \\C\\test\\\nE + \\\\\\C\\test\\\nE ? ++\n\ntests/test_future/test_urllib.py:1339: AssertionError\n________________ URL2PathNameTests.test_roundtrip_url2pathname _________________\n\nself = \u003ctest_future.test_urllib.URL2PathNameTests testMethod=test_roundtrip_url2pathname\u003e\n\n def test_roundtrip_url2pathname(self):\n list_of_paths = ['C:',\n r'\\\\\\C\\test\\\\',\n r'C:\\foo\\bar\\spam.foo'\n ]\n for path in list_of_paths:\n\u003e self.assertEqual(url2pathname(pathname2url(path)), path)\nE AssertionError: '\\\\C\\\\test\\\\\\\\' != '\\\\\\\\\\\\C\\\\test\\\\\\\\'\nE - \\C\\test\\\\\nE + \\\\\\C\\test\\\\\nE ? ++\n\ntests/test_future/test_urllib.py:1355: AssertionError\n________________ PathName2URLTests.test_converting_drive_letter ________________\n\nself = \u003ctest_future.test_urllib.PathName2URLTests testMethod=test_converting_drive_letter\u003e\n\n def test_converting_drive_letter(self):\n self.assertEqual(pathname2url(\"C:\"), '///C:')\n\u003e self.assertEqual(pathname2url(\"C:\\\\\"), '///C:')\nE AssertionError: '///C:/' != '///C:'\nE - ///C:/\nE ? -\nE + ///C:\n\ntests/test_future/test_urllib.py:1361: AssertionError\n____________ PathName2URLTests.test_converting_when_no_drive_letter ____________\n\nself = \u003ctest_future.test_urllib.PathName2URLTests testMethod=test_converting_when_no_drive_letter\u003e\n\n def test_converting_when_no_drive_letter(self):\n\u003e self.assertEqual(pathname2url(r\"\\\\\\folder\\test\" \"\\\\\"),\n '/////folder/test/')\nE AssertionError: '///folder/test/' != '/////folder/test/'\nE - ///folder/test/\nE + /////folder/test/\nE ? ++\n\ntests/test_future/test_urllib.py:1364: AssertionError\n________________ PathName2URLTests.test_roundtrip_pathname2url _________________\n\nself = \u003ctest_future.test_urllib.PathName2URLTests testMethod=test_roundtrip_pathname2url\u003e\n\n def test_roundtrip_pathname2url(self):\n list_of_paths = ['///C:',\n '/////folder/test/',\n '///C:/foo/bar/spam.foo']\n for path in list_of_paths:\n\u003e self.assertEqual(pathname2url(url2pathname(path)), path)\nE AssertionError: '//folder/test/' != '/////folder/test/'\nE - //folder/test/\nE + /////folder/test/\nE ? +++\n\ntests/test_future/test_urllib.py:1383: AssertionError\n____________ URL2PathNameTests.test_converting_when_no_drive_letter ____________\n\nself = \u003ctest_future.test_urllib_toplevel.URL2PathNameTests testMethod=test_converting_when_no_drive_letter\u003e\n\n def test_converting_when_no_drive_letter(self):\n # cannot end a raw string in \\\n\u003e self.assertEqual(url2pathname(\"///C/test/\"), r'\\\\\\C\\test' '\\\\')\nE AssertionError: '\\\\C\\\\test\\\\' != '\\\\\\\\\\\\C\\\\test\\\\'\nE - \\C\\test\\\nE + \\\\\\C\\test\\\nE ? ++\n\ntests/test_future/test_urllib_toplevel.py:1357: AssertionError\n________________ URL2PathNameTests.test_roundtrip_url2pathname _________________\n\nself = \u003ctest_future.test_urllib_toplevel.URL2PathNameTests testMethod=test_roundtrip_url2pathname\u003e\n\n def test_roundtrip_url2pathname(self):\n list_of_paths = ['C:',\n r'\\\\\\C\\test\\\\',\n r'C:\\foo\\bar\\spam.foo'\n ]\n for path in list_of_paths:\n\u003e self.assertEqual(url2pathname(pathname2url(path)), path)\nE AssertionError: '\\\\C\\\\test\\\\\\\\' != '\\\\\\\\\\\\C\\\\test\\\\\\\\'\nE - \\C\\test\\\\\nE + \\\\\\C\\test\\\\\nE ? ++\n\ntests/test_future/test_urllib_toplevel.py:1373: AssertionError\n________________ PathName2URLTests.test_converting_drive_letter ________________\n\nself = \u003ctest_future.test_urllib_toplevel.PathName2URLTests testMethod=test_converting_drive_letter\u003e\n\n def test_converting_drive_letter(self):\n self.assertEqual(pathname2url(\"C:\"), '///C:')\n\u003e self.assertEqual(pathname2url(\"C:\\\\\"), '///C:')\nE AssertionError: '///C:/' != '///C:'\nE - ///C:/\nE ? -\nE + ///C:\n\ntests/test_future/test_urllib_toplevel.py:1379: AssertionError\n____________ PathName2URLTests.test_converting_when_no_drive_letter ____________\n\nself = \u003ctest_future.test_urllib_toplevel.PathName2URLTests testMethod=test_converting_when_no_drive_letter\u003e\n\n def test_converting_when_no_drive_letter(self):\n\u003e self.assertEqual(pathname2url(r\"\\\\\\folder\\test\" \"\\\\\"),\n '/////folder/test/')\nE AssertionError: '///folder/test/' != '/////folder/test/'\nE - ///folder/test/\nE + /////folder/test/\nE ? ++\n\ntests/test_future/test_urllib_toplevel.py:1382: AssertionError\n________________ PathName2URLTests.test_roundtrip_pathname2url _________________\n\nself = \u003ctest_future.test_urllib_toplevel.PathName2URLTests testMethod=test_roundtrip_pathname2url\u003e\n\n def test_roundtrip_pathname2url(self):\n list_of_paths = ['///C:',\n '/////folder/test/',\n '///C:/foo/bar/spam.foo']\n for path in list_of_paths:\n\u003e self.assertEqual(pathname2url(url2pathname(path)), path)\nE AssertionError: '//folder/test/' != '/////folder/test/'\nE - //folder/test/\nE + /////folder/test/\nE ? +++\n\ntests/test_future/test_urllib_toplevel.py:1401: AssertionError\n```","author":{"url":"https://github.com/ptrcnull","@type":"Person","name":"ptrcnull"},"datePublished":"2025-03-30T20:24:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/647/python-future/issues/647"}
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:39510e27-e508-427a-72d0-e6868add1bb8 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id EA6A:215E8B:66D547A:8BEC42B:696E462B html-safe-nonce 87d41f01634cdd8776ba1e9c50a2d076e130e62fa46d41827cc7fc266df2d77c visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTZBOjIxNUU4Qjo2NkQ1NDdBOjhCRUM0MkI6Njk2RTQ2MkIiLCJ2aXNpdG9yX2lkIjoiNTM1ODM1MDk0OTE0MTA3MTQwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 21cc9e81e622af0c5ec311dbd2c8dd1b868e6abfe5762de3a20f8063c2b9feea hovercard-subject-tag issue:2959080653 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/PythonCharmers/python-future/647/issue_layout twitter:image https://opengraph.githubassets.com/9ebdf68d424387ce7869a353989474c5705fe489df5f7c009666189ec6fc9b90/PythonCharmers/python-future/issues/647 twitter:card summary_large_image og:image https://opengraph.githubassets.com/9ebdf68d424387ce7869a353989474c5705fe489df5f7c009666189ec6fc9b90/PythonCharmers/python-future/issues/647 og:image:alt some changes between Python 3.12.2 and 3.12.9 cause the following tests to fail on Alpine Linux edge with python-future 1.0.0: ____________ URL2PathNameTests.test_converting_when_no_drive_letter __... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username ptrcnull hostname github.com expected-hostname github.com None 3d96554e55b469c47dbcd31f74dc86278872b170531e84c6ce7f3389673e01d1 turbo-cache-control no-preview go-import github.com/PythonCharmers/python-future git https://github.com/PythonCharmers/python-future.git octolytics-dimension-user_id 3365815 octolytics-dimension-user_login PythonCharmers octolytics-dimension-repository_id 11403699 octolytics-dimension-repository_nwo PythonCharmers/python-future octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 11403699 octolytics-dimension-repository_network_root_nwo PythonCharmers/python-future 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 ef576694863a4c791d0a5cc9d2b84384d4414bcd ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.