[Jython-checkins] jython (2.5): clarify comment
philip.jenvey
jython-checkins at python.org
Fri Dec 16 01:20:30 CET 2011
http://hg.python.org/jython/rev/e334a2a95e66
changeset: 6288:e334a2a95e66
branch: 2.5
parent: 6285:32b8ace8ef6d
user: Philip Jenvey <pjenvey at underboss.org>
date: Thu Dec 15 15:26:45 2011 -0800
summary:
clarify comment
files:
Lib/test/test_chdir.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Lib/test/test_chdir.py b/Lib/test/test_chdir.py
--- a/Lib/test/test_chdir.py
+++ b/Lib/test/test_chdir.py
@@ -582,13 +582,14 @@
def test_symlink_src_is_relative(self):
write(self.src, 'foo')
# Ensure that linking to os.path.basename(self.src) creates a
- # dead link (since it lives in a different dir)
+ # dead link (as self.src lives in a different dir than
+ # self.link)
os.symlink(self.relsrc, self.link)
# If the cwd (self.dir1) was applied to os.link's src arg then
# the link would not be dead
- self.assertTrue(self.is_dead_link(self.link))
+ self.assertTrue(self.isdeadlink(self.link))
- def is_dead_link(self, link):
+ def isdeadlink(self, link):
return os.path.lexists(link) and not os.path.exists(link)
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list