From 4a53ad73eb4468796317bd1e44273a80b3ec9385 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 27 Mar 2015 13:15:17 +0100 Subject: testutils: Add a context manager to capture stderr and use it to test the help output --- tests/testutils/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/testutils/__init__.py') diff --git a/tests/testutils/__init__.py b/tests/testutils/__init__.py index c94af64..092d377 100644 --- a/tests/testutils/__init__.py +++ b/tests/testutils/__init__.py @@ -13,9 +13,10 @@ from gbp.deb.changelog import ChangeLog from . gbplogtester import GbpLogTester from . debiangittestrepo import DebianGitTestRepo +from . capture import capture_stderr __all__ = ['GbpLogTester', 'DebianGitTestRepo', 'OsReleaseFile', - 'MockedChangeLog', 'get_dch_default_urgency' ] + 'MockedChangeLog', 'get_dch_default_urgency', 'capture_stderr' ] class OsReleaseFile(object): """Repesents a simple file with key-value pairs""" -- cgit v1.2.3