summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-04-27 22:26:36 +0200
committerGuido Günther <agx@sigxcpu.org>2013-04-27 22:35:48 +0200
commit059af98c610a8c4924e42d1b62429a89f3dc5dcb (patch)
tree6063c5a33bfd172516906c3dffdfc1ddb602e1cb /tests
parent71e9e244caabfca463e7898ff684a9861bb5a582 (diff)
downloadgit-buildpackage-059af98c610a8c4924e42d1b62429a89f3dc5dcb.tar.gz
git-buildpackage-059af98c610a8c4924e42d1b62429a89f3dc5dcb.tar.bz2
git-buildpackage-059af98c610a8c4924e42d1b62429a89f3dc5dcb.zip
GitRepository.has_feature: capture stderr
to avoid spurious output on the console and add the error message to the exception intead.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitRepository.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py
index 7365dd81..bec08368 100644
--- a/tests/test_GitRepository.py
+++ b/tests/test_GitRepository.py
@@ -828,7 +828,7 @@ def test_cmd_has_feature():
>>> repo._cmd_has_feature("foobarcmd", "foobaroption")
Traceback (most recent call last):
...
- GitRepositoryError: Invalid git command: foobarcmd
+ GitRepositoryError: Invalid git command 'foobarcmd': No manual entry for gitfoobarcmd
>>> repo._cmd_has_feature("show", "standard-notes")
True
>>> repo._cmd_has_feature("show", "no-standard-notes")