We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 538323a commit 2ee2454Copy full SHA for 2ee2454
bdiff/tests/test_git_bdiff.py
@@ -207,12 +207,10 @@ def test_git_run(git_repo):
207
208
with pytest.raises(TypeError) as exc:
209
# Use a string in place of a list
210
- for i in bdiff.run_git("commit -m ''"):
211
- pass
+ list(i for i in bdiff.run_git("commit -m ''"))
212
assert "args must be a list" in str(exc.value)
213
214
with pytest.raises(GitBDiffError) as exc:
215
# Run a command that should return non-zero
216
- for i in bdiff.run_git(["commit", "-m", "''"]):
217
+ list(i for i in bdiff.run_git(["commit", "-m", "''"]))
218
assert "command returned 1" in str(exc.value)
0 commit comments