mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix flake8 error
This commit is contained in:
parent
8ca303032f
commit
87808797ea
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue