From 41cbeed8d7604d0562cc9d6494520886f82d2ace Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 13 Jan 2017 20:55:05 +0200 Subject: Issue #29197: Removed deprecated function ntpath.splitunc(). --- Lib/test/test_ntpath.py | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'Lib/test/test_ntpath.py') diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 90edb6d080..15215e497d 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -72,29 +72,6 @@ class TestNtpath(unittest.TestCase): self.assertEqual(ntpath.splitdrive('//conky/MOUNTPOİNT/foo/bar'), ('//conky/MOUNTPOİNT', '/foo/bar')) - def test_splitunc(self): - with self.assertWarns(DeprecationWarning): - ntpath.splitunc('') - with support.check_warnings(('', DeprecationWarning)): - tester('ntpath.splitunc("c:\\foo\\bar")', - ('', 'c:\\foo\\bar')) - tester('ntpath.splitunc("c:/foo/bar")', - ('', 'c:/foo/bar')) - tester('ntpath.splitunc("\\\\conky\\mountpoint\\foo\\bar")', - ('\\\\conky\\mountpoint', '\\foo\\bar')) - tester('ntpath.splitunc("//conky/mountpoint/foo/bar")', - ('//conky/mountpoint', '/foo/bar')) - tester('ntpath.splitunc("\\\\\\conky\\mountpoint\\foo\\bar")', - ('', '\\\\\\conky\\mountpoint\\foo\\bar')) - tester('ntpath.splitunc("///conky/mountpoint/foo/bar")', - ('', '///conky/mountpoint/foo/bar')) - tester('ntpath.splitunc("\\\\conky\\\\mountpoint\\foo\\bar")', - ('', '\\\\conky\\\\mountpoint\\foo\\bar')) - tester('ntpath.splitunc("//conky//mountpoint/foo/bar")', - ('', '//conky//mountpoint/foo/bar')) - self.assertEqual(ntpath.splitunc('//conky/MOUNTPOİNT/foo/bar'), - ('//conky/MOUNTPOİNT', '/foo/bar')) - def test_split(self): tester('ntpath.split("c:\\foo\\bar")', ('c:\\foo', 'bar')) tester('ntpath.split("\\\\conky\\mountpoint\\foo\\bar")', @@ -449,7 +426,7 @@ class TestNtpath(unittest.TestCase): class NtCommonTest(test_genericpath.CommonTest, unittest.TestCase): pathmodule = ntpath - attributes = ['relpath', 'splitunc'] + attributes = ['relpath'] class PathLikeTests(unittest.TestCase): -- cgit v1.2.1