Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-119826: ntpath.abspath() always return absolute path #119938

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

Merged
merged 13 commits into from
Nov 12, 2024
Prev Previous commit
Next Next commit
Revert "Revert "Test for correct sep""
This reverts commit abdb8d8.
  • Loading branch information
nineteendo committed Jun 2, 2024
commit f46b0cc1eaedaad3e9e15d2da43cc712886b75b0
2 changes: 1 addition & 1 deletion 2 Lib/test/test_ntpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ def test_abspath(self):
tester('ntpath.abspath("C:\\nul")', "\\\\.\\nul")
self.assertTrue(ntpath.isabs(ntpath.abspath("C:spam")))
self.assertTrue(ntpath.isabs(ntpath.abspath("C:\x00")))
self.assertTrue(ntpath.isabs(ntpath.abspath("\x00:spam")))
self.assertEqual(ntpath.abspath("\x00:spam"), "\x00:\\spam")
tester('ntpath.abspath("//..")', "\\\\")
tester('ntpath.abspath("//../")', "\\\\..\\")
tester('ntpath.abspath("//../..")', "\\\\..\\")
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.