mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
cleanup test_posix
This commit is contained in:
parent
047b7ae566
commit
bed04a77ee
1 changed files with 10 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue