From 783025d32704c435e0500c6c26dca0e660d63e0a Mon Sep 17 00:00:00 2001 From: delanne Date: Fri, 9 Nov 2012 14:55:20 +0100 Subject: [PATCH] Fix: "The opt variable is not used in the loop" --- test/test_diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_diff.py b/test/test_diff.py index 0aaa8b9..6fa9ba0 100644 --- a/test/test_diff.py +++ b/test/test_diff.py @@ -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())))