Commit 8a1a17b3 authored by Benjamin Peterson's avatar Benjamin Peterson

Remove redundant check for symlink. (closes #6036)

Patch by Bruno Dupuis.
parent 8da8268b
......@@ -110,8 +110,10 @@ class PosixPathTest(unittest.TestCase):
),
True
)
# If we don't have links, assume that os.stat doesn't return resonable
# inode information and thus, that samefile() doesn't work
# If we don't have links, assume that os.stat doesn't return
# reasonable inode information and thus, that samefile() doesn't
# work.
if hasattr(os, "symlink"):
os.symlink(
test_support.TESTFN + "1",
......@@ -152,8 +154,7 @@ class PosixPathTest(unittest.TestCase):
True
)
# If we don't have links, assume that os.stat() doesn't return resonable
# inode information and thus, that samefile() doesn't work
if hasattr(os, "symlink"):
# inode information and thus, that samestat() doesn't work
if hasattr(os, "symlink"):
os.symlink(test_support.TESTFN + "1", test_support.TESTFN + "2")
self.assertIs(
......
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