diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-10-08 18:47:01 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-10-08 18:54:19 +0200 |
commit | f96c8e167b0e98693aa0f0d853752e2f8e0fe96c (patch) | |
tree | 9a736a7f5904daaf7400ce79e2830cd0b6b9407b /tests | |
parent | c1b32fa62ee252e4cffb92a64b162ad8f98ca27a (diff) |
tests: capture stderr in gbp rpm-ch component tests
Reduces spurious output
Diffstat (limited to 'tests')
-rw-r--r-- | tests/component/rpm/test_rpm_ch.py | 7 |
1 files 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): |