From f96c8e167b0e98693aa0f0d853752e2f8e0fe96c Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 8 Oct 2016 18:47:01 +0200 Subject: tests: capture stderr in gbp rpm-ch component tests Reduces spurious output --- tests/component/rpm/test_rpm_ch.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/component/rpm/test_rpm_ch.py b/tests/component/rpm/test_rpm_ch.py index 3124688a..3fa54363 100644 --- a/tests/component/rpm/test_rpm_ch.py +++ b/tests/component/rpm/test_rpm_ch.py @@ -22,6 +22,7 @@ from nose.tools import assert_raises, eq_, ok_ # pylint: disable=E0611 from gbp.scripts.rpm_ch import main as rpm_ch from gbp.git import GitRepository +from tests.testutils import capture_stderr from tests.component.rpm import RpmRepoTestBase @@ -31,9 +32,9 @@ from tests.component.rpm import RpmRepoTestBase def mock_ch(args): """Wrapper for gbp-rpm-ch""" - - return rpm_ch(['arg0', '--packaging-branch=master', - '--spawn-editor=never'] + args) + with capture_stderr(): + return rpm_ch(['arg0', '--packaging-branch=master', + '--spawn-editor=never'] + args) class TestRpmCh(RpmRepoTestBase): -- cgit v1.2.3