mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Remove duplicate test method.
This commit is contained in:
parent
308e18b595
commit
b86d3fa43c
1 changed files with 1 additions and 6 deletions
|
@ -2,7 +2,7 @@ import unittest
|
|||
from test import test_support
|
||||
|
||||
import posixpath, os
|
||||
from posixpath import realpath, abspath, join, dirname, basename, relpath
|
||||
from posixpath import realpath, abspath, dirname, basename
|
||||
|
||||
# An absolute path to a temporary filename for testing. We can't rely on TESTFN
|
||||
# being an absolute path, so we need this.
|
||||
|
@ -89,11 +89,6 @@ class PosixPathTest(unittest.TestCase):
|
|||
|
||||
self.assertRaises(TypeError, posixpath.isabs)
|
||||
|
||||
def test_splitdrive(self):
|
||||
self.assertEqual(posixpath.splitdrive("/foo/bar"), ("", "/foo/bar"))
|
||||
|
||||
self.assertRaises(TypeError, posixpath.splitdrive)
|
||||
|
||||
def test_basename(self):
|
||||
self.assertEqual(posixpath.basename("/foo/bar"), "bar")
|
||||
self.assertEqual(posixpath.basename("/"), "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue