Fix coverage on check_symlinks for windows

This commit is contained in:
Anthony Sottile 2016-01-15 07:41:58 -08:00
parent eff3eafcbb
commit 8d80d51cad

View file

@ -15,7 +15,10 @@ def check_symlinks(argv=None):
retv = 0
for filename in args.filenames:
if os.path.islink(filename) and not os.path.exists(filename):
if (
os.path.islink(filename) and
not os.path.exists(filename)
): # pragma no cover (symlink support required)
print('{0}: Broken symlink'.format(filename))
retv = 1