aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/component/rpm/test_rpm_ch.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/component/rpm/test_rpm_ch.py')
-rw-r--r--tests/component/rpm/test_rpm_ch.py7
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):