summaryrefslogtreecommitdiff
path: root/Lib/test/test_posixpath.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-06 14:27:15 +0000
committerGeorg Brandl <georg@python.org>2008-01-06 14:27:15 +0000
commit183a084da3c60109f072cca734eb78fcc1cf56fc (patch)
treebb3d08fb27b70a1ff52b83794bcff5c17a2a7e76 /Lib/test/test_posixpath.py
parente2a902c66900d313704da1a0860c0c6e11fbab8a (diff)
downloadcpython-git-183a084da3c60109f072cca734eb78fcc1cf56fc.tar.gz
#1742: don't raise exception on os.path.relpath("a", "a"), but return os.curdir.
Reported by Jesse Towner.
Diffstat (limited to 'Lib/test/test_posixpath.py')
-rw-r--r--Lib/test/test_posixpath.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
index 88aa68c5b3..46ac067263 100644
--- a/Lib/test/test_posixpath.py
+++ b/Lib/test/test_posixpath.py
@@ -501,6 +501,7 @@ class PosixPathTest(unittest.TestCase):
self.assertEqual(posixpath.relpath("a", "../b"), "../"+curdir+"/a")
self.assertEqual(posixpath.relpath("a/b", "../c"), "../"+curdir+"/a/b")
self.assertEqual(posixpath.relpath("a", "b/c"), "../../a")
+ self.assertEqual(posixpath.relpath("a", "a"), ".")
finally:
os.getcwd = real_getcwd