From 87808797ea39302b8ace3e3b1f06a2a93fec0f90 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 16 Feb 2016 14:25:43 -0600 Subject: [PATCH] Fix flake8 error --- ansible_testing/modules.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index db77674dfd9..01e508bcf5c 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -414,6 +414,8 @@ class ModuleValidator(Validator): sys_stdout = sys.stdout sys_stderr = sys.stderr sys.stdout = sys.stderr = buf = StringIO() + # instead of adding noqa to the above, do something with buf + assert buf setattr(sys.stdout, 'encoding', sys_stdout.encoding) setattr(sys.stderr, 'encoding', sys_stderr.encoding) try: