Skip to content

Commit 2ee2454

Browse files
committed
Minor change to remove some dead test code
1 parent 538323a commit 2ee2454

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bdiff/tests/test_git_bdiff.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,10 @@ def test_git_run(git_repo):
207207

208208
with pytest.raises(TypeError) as exc:
209209
# Use a string in place of a list
210-
for i in bdiff.run_git("commit -m ''"):
211-
pass
210+
list(i for i in bdiff.run_git("commit -m ''"))
212211
assert "args must be a list" in str(exc.value)
213212

214213
with pytest.raises(GitBDiffError) as exc:
215214
# Run a command that should return non-zero
216-
for i in bdiff.run_git(["commit", "-m", "''"]):
217-
pass
215+
list(i for i in bdiff.run_git(["commit", "-m", "''"]))
218216
assert "command returned 1" in str(exc.value)

0 commit comments

Comments
 (0)