1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 18:34:48 +00:00

add pyflakes and fix errors

This commit is contained in:
deadc0de6
2019-02-11 21:40:42 +01:00
parent e53a52655f
commit 83a04feb43
15 changed files with 24 additions and 23 deletions

View File

@@ -35,6 +35,7 @@ class TestCompare(unittest.TestCase):
comp = Comparator()
results = {}
for dotfile in dotfiles:
path = os.path.expanduser(dotfile.dst)
ret, insttmp = inst.install_to_temp(t, tmp, dotfile.src,
dotfile.dst)
if not ret:
@@ -42,7 +43,6 @@ class TestCompare(unittest.TestCase):
continue
diff = comp.compare(insttmp, dotfile.dst,
ignore=['whatever', 'whatelse'])
path = os.path.expanduser(dotfile.dst)
results[path] = diff == ''
return results