@@ -72,29 +72,6 @@ def test_splitdrive(self):
7272 self .assertEqual (ntpath .splitdrive ('//conky/MOUNTPOİNT/foo/bar' ),
7373 ('//conky/MOUNTPOİNT' , '/foo/bar' ))
7474
75- def test_splitunc (self ):
76- with self .assertWarns (DeprecationWarning ):
77- ntpath .splitunc ('' )
78- with support .check_warnings (('' , DeprecationWarning )):
79- tester ('ntpath.splitunc("c:\\ foo\\ bar")' ,
80- ('' , 'c:\\ foo\\ bar' ))
81- tester ('ntpath.splitunc("c:/foo/bar")' ,
82- ('' , 'c:/foo/bar' ))
83- tester ('ntpath.splitunc("\\ \\ conky\\ mountpoint\\ foo\\ bar")' ,
84- ('\\ \\ conky\\ mountpoint' , '\\ foo\\ bar' ))
85- tester ('ntpath.splitunc("//conky/mountpoint/foo/bar")' ,
86- ('//conky/mountpoint' , '/foo/bar' ))
87- tester ('ntpath.splitunc("\\ \\ \\ conky\\ mountpoint\\ foo\\ bar")' ,
88- ('' , '\\ \\ \\ conky\\ mountpoint\\ foo\\ bar' ))
89- tester ('ntpath.splitunc("///conky/mountpoint/foo/bar")' ,
90- ('' , '///conky/mountpoint/foo/bar' ))
91- tester ('ntpath.splitunc("\\ \\ conky\\ \\ mountpoint\\ foo\\ bar")' ,
92- ('' , '\\ \\ conky\\ \\ mountpoint\\ foo\\ bar' ))
93- tester ('ntpath.splitunc("//conky//mountpoint/foo/bar")' ,
94- ('' , '//conky//mountpoint/foo/bar' ))
95- self .assertEqual (ntpath .splitunc ('//conky/MOUNTPOİNT/foo/bar' ),
96- ('//conky/MOUNTPOİNT' , '/foo/bar' ))
97-
9875 def test_split (self ):
9976 tester ('ntpath.split("c:\\ foo\\ bar")' , ('c:\\ foo' , 'bar' ))
10077 tester ('ntpath.split("\\ \\ conky\\ mountpoint\\ foo\\ bar")' ,
@@ -449,7 +426,7 @@ def test_ismount(self):
449426
450427class NtCommonTest (test_genericpath .CommonTest , unittest .TestCase ):
451428 pathmodule = ntpath
452- attributes = ['relpath' , 'splitunc' ]
429+ attributes = ['relpath' ]
453430
454431
455432class PathLikeTests (unittest .TestCase ):
0 commit comments