Commit c855c7eb authored by Georg Brandl's avatar Georg Brandl

Merged revisions 78080 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78080 | georg.brandl | 2010-02-07 13:55:12 +0100 (So, 07 Feb 2010) | 1 line

  Remove duplicate test method.
........
parent 9bbf8369
...@@ -2,7 +2,7 @@ import unittest ...@@ -2,7 +2,7 @@ import unittest
from test import test_support from test import test_support
import posixpath, os 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 # An absolute path to a temporary filename for testing. We can't rely on TESTFN
# being an absolute path, so we need this. # being an absolute path, so we need this.
...@@ -89,11 +89,6 @@ class PosixPathTest(unittest.TestCase): ...@@ -89,11 +89,6 @@ class PosixPathTest(unittest.TestCase):
self.assertRaises(TypeError, posixpath.isabs) 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): def test_basename(self):
self.assertEqual(posixpath.basename("/foo/bar"), "bar") self.assertEqual(posixpath.basename("/foo/bar"), "bar")
self.assertEqual(posixpath.basename("/"), "") self.assertEqual(posixpath.basename("/"), "")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment