gh-102511: Speed up os.path.splitroot() with native helpers (GH-118089)

This commit is contained in:
Nice Zombies 2024-04-25 11:07:38 +02:00 committed by GitHub
parent e38b43c213
commit 10bb90ed49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 337 additions and 108 deletions

View file

@ -374,6 +374,7 @@ class TestNtpath(NtpathTestCase):
tester("ntpath.normpath('\\\\foo\\')", '\\\\foo\\')
tester("ntpath.normpath('\\\\foo')", '\\\\foo')
tester("ntpath.normpath('\\\\')", '\\\\')
tester("ntpath.normpath('//?/UNC/server/share/..')", '\\\\?\\UNC\\server\\share\\')
def test_realpath_curdir(self):
expected = ntpath.normpath(os.getcwd())