Commit c9d56035 authored by Larry Hastings's avatar Larry Hastings

Issue #14626: Fix buildbot issues on FreeBSD (AMD64). (Fingers crossed.)

parent 6a403c4b
......@@ -721,8 +721,13 @@ class PosixTester(unittest.TestCase):
posix.utime(support.TESTFN, dir_fd=f,
times=(int(now), int((now - int(now)) * 1e9)))
# try dir_fd and follow_symlinks together
if os.utime in os.supports_follow_symlinks:
posix.utime(support.TESTFN, follow_symlinks=False, dir_fd=f)
try:
posix.utime(support.TESTFN, follow_symlinks=False, dir_fd=f)
except RuntimeError:
# whoops! using both together not supported on this platform.
pass
finally:
posix.close(f)
......
......@@ -296,7 +296,7 @@ class TestShutil(unittest.TestCase):
def make_chflags_raiser(err):
ex = OSError()
def _chflags_raiser(path, flags):
def _chflags_raiser(path, flags, *, follow_symlinks=True):
ex.errno = err
raise ex
return _chflags_raiser
......
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