Fix: "The opt variable is not used in the loop"

This commit is contained in:
delanne
2012-11-09 14:55:20 +01:00
parent 1b7e61145e
commit 783025d327

View File

@@ -140,7 +140,7 @@ class DiffTest(utils.BareRepoTestCase):
for opt in [pygit2.GIT_DIFF_IGNORE_WHITESPACE,
pygit2.GIT_DIFF_IGNORE_WHITESPACE_EOL]:
diff = commit_c.tree.diff(commit_d.tree, pygit2.GIT_DIFF_IGNORE_WHITESPACE)
diff = commit_c.tree.diff(commit_d.tree, opt)
self.assertTrue(diff is not None)
self.assertEqual(0, len(diff.changes.get('hunks', list())))