summaryrefslogtreecommitdiff
path: root/tests/helper.py
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-03-10 18:04:14 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-03-11 13:30:17 +0100
commit32ed54bbe8519f8e771fcb6a03dd64160b60d22f (patch)
tree6c7e8e18d1981f47cc13fe0db59e6432341f87ec /tests/helper.py
parente1c00daff8c75f0a543c841d5a749b698f051a6f (diff)
downloadpygobject-32ed54bbe8519f8e771fcb6a03dd64160b60d22f.tar.gz
tests_gi: Use capture_output() context manager instead of manually mocking stdout
Diffstat (limited to 'tests/helper.py')
-rw-r--r--tests/helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/helper.py b/tests/helper.py
index b683a4af..22d1b503 100644
--- a/tests/helper.py
+++ b/tests/helper.py
@@ -115,7 +115,7 @@ def capture_glib_deprecation_warnings():
@contextlib.contextmanager
def capture_output():
"""
- with capture_output as (stdout, stderr):
+ with capture_output() as (stdout, stderr):
some_action()
print(stdout.getvalue(), stderr.getvalue())
"""