mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-102511: Speed up os.path.splitroot() with native helpers (GH-118089)
This commit is contained in:
parent
e38b43c213
commit
10bb90ed49
8 changed files with 337 additions and 108 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue