diff --git a/test/basetest/utils.py b/test/basetest/utils.py index b261d5c95..36f5a3992 100644 --- a/test/basetest/utils.py +++ b/test/basetest/utils.py @@ -350,8 +350,8 @@ except ImportError: # Additionally check that `file` is not a directory, as on Windows # directories pass the os.access check. def _access_check(fn, mode): - return (os.path.exists(fn) and os.access(fn, mode) - and not os.path.isdir(fn)) + return (os.path.exists(fn) and os.access(fn, mode) and + not os.path.isdir(fn)) # If we're given a path with a directory part, look it up directly # rather than referring to PATH directories. This includes checking