cleanup test_posix

This commit is contained in:
Victor Stinner 2014-10-05 17:37:59 +02:00
parent 047b7ae566
commit bed04a77ee

View file

@ -1127,8 +1127,9 @@ class PosixTester(unittest.TestCase):
"""
for name in ("rename", "replace", "link"):
function = getattr(os, name, None)
if function is None:
continue
if function:
for dst in ("noodly2", support.TESTFN):
try:
function('doesnotexistfilename', dst)