diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-03-10 18:04:14 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-03-11 13:30:17 +0100 |
commit | 32ed54bbe8519f8e771fcb6a03dd64160b60d22f (patch) | |
tree | 6c7e8e18d1981f47cc13fe0db59e6432341f87ec /tests/helper.py | |
parent | e1c00daff8c75f0a543c841d5a749b698f051a6f (diff) | |
download | pygobject-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.py | 2 |
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()) """ |