Tests - minor formatting changes
This commit is contained in:
@@ -350,8 +350,8 @@ except ImportError:
|
|||||||
# Additionally check that `file` is not a directory, as on Windows
|
# Additionally check that `file` is not a directory, as on Windows
|
||||||
# directories pass the os.access check.
|
# directories pass the os.access check.
|
||||||
def _access_check(fn, mode):
|
def _access_check(fn, mode):
|
||||||
return (os.path.exists(fn) and os.access(fn, mode)
|
return (os.path.exists(fn) and os.access(fn, mode) and
|
||||||
and not os.path.isdir(fn))
|
not os.path.isdir(fn))
|
||||||
|
|
||||||
# If we're given a path with a directory part, look it up directly
|
# If we're given a path with a directory part, look it up directly
|
||||||
# rather than referring to PATH directories. This includes checking
|
# rather than referring to PATH directories. This includes checking
|
||||||
|
|||||||
Reference in New Issue
Block a user