diff -r f44b8d69e5fc Lib/test/test_posixpath.py --- a/Lib/test/test_posixpath.py Thu Nov 29 19:03:37 2012 -0800 +++ b/Lib/test/test_posixpath.py Fri Nov 30 21:39:12 2012 +0100 @@ -152,18 +152,17 @@ True ) # If we don't have links, assume that os.stat() doesn't return resonable - # inode information and thus, that samefile() doesn't work + # inode information and thus, that samestat() doesn't work if hasattr(os, "symlink"): - if hasattr(os, "symlink"): - os.symlink(test_support.TESTFN + "1", test_support.TESTFN + "2") - self.assertIs( - posixpath.samestat( - os.stat(test_support.TESTFN + "1"), - os.stat(test_support.TESTFN + "2") - ), - True - ) - os.remove(test_support.TESTFN + "2") + os.symlink(test_support.TESTFN + "1", test_support.TESTFN + "2") + self.assertIs( + posixpath.samestat( + os.stat(test_support.TESTFN + "1"), + os.stat(test_support.TESTFN + "2") + ), + True + ) + os.remove(test_support.TESTFN + "2") f = open(test_support.TESTFN + "2", "wb") f.write("bar") f.close()