diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-09-28 08:49:40 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-09-28 08:49:40 +0200 |
commit | 86068d47f11479903726ea00f2e7dd759bfde364 (patch) | |
tree | a6de3a49116f68038129a8493268810a52e67f9f /tests | |
parent | c1ab85ad188f073b99b407a87cb784408d806cf9 (diff) |
test_pq_rpm.py: don't spew on stderr
Diffstat (limited to 'tests')
-rw-r--r-- | tests/component/rpm/test_pq_rpm.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/component/rpm/test_pq_rpm.py b/tests/component/rpm/test_pq_rpm.py index 1861fcc2..e1d97b7f 100644 --- a/tests/component/rpm/test_pq_rpm.py +++ b/tests/component/rpm/test_pq_rpm.py @@ -25,6 +25,7 @@ from gbp.git import GitRepository from gbp.command_wrappers import GitCommand from tests.component.rpm import RpmRepoTestBase +from tests.testutils import capture_stderr # Disable "Method could be a function warning" # pylint: disable=R0201 @@ -54,7 +55,8 @@ class TestPqRpm(RpmRepoTestBase): # Test invalid cmdline options with assert_raises(SystemExit): - mock_pq(['--invalid-arg=123']) + with capture_stderr() as c: + mock_pq(['--invalid-arg=123']) def test_import_outside_repo(self): """Run pq-rpm when not in a git repository""" |