aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-12-26 20:15:17 +0100
committerGuido Günther <agx@sigxcpu.org>2016-12-26 20:15:17 +0100
commitce644b02862726e0d75a98d60703227de75012a7 (patch)
tree91e3564be16b395233a17d1f53cae5ab1cb310a4 /tests
parent73e1bca3b37db06dcf5d3a36472a0b78e2f20338 (diff)
tests: Drop spurious log output
Diffstat (limited to 'tests')
-rw-r--r--tests/doctests/test_PristineTar.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/doctests/test_PristineTar.py b/tests/doctests/test_PristineTar.py
index ab94ca1..a792703 100644
--- a/tests/doctests/test_PristineTar.py
+++ b/tests/doctests/test_PristineTar.py
@@ -17,7 +17,6 @@ This testcase creates this reposity:
import os
from .. import context
-
test_data = os.path.join(context.projectdir, "tests/test_PristineTar_data")
dirs = {}
@@ -145,14 +144,17 @@ def test_pristine_tar_checkout_nonexistent():
Methods tested:
- L{gbp.deb.pristinetar.DebianPristineTar.checkout}
+ # Silence error output
>>> import gbp.deb.git
>>> repo = gbp.deb.git.DebianGitRepository(dirs['repo'])
+ >>> _gbp_log_err_bak = gbp.log.err
+ >>> gbp.log.err = lambda x: None
>>> repo.pristine_tar.checkout('upstream', '1.1', 'gzip', '..')
Traceback (most recent call last):
...
CommandExecFailed: Pristine-tar couldn't checkout "upstream_1.1.orig.tar.gz": fatal: Path 'upstream_1.1.orig.tar.gz.delta' does not exist in 'refs/heads/pristine-tar'
pristine-tar: git show refs/heads/pristine-tar:upstream_1.1.orig.tar.gz.delta failed
+ >>> gbp.log.err = _gbp_log_err_bak
"""
-
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: