Skip to content

Commit f2461c1

Browse files
committed
_testing/runcli.py: Drop workaround for AIX
mypy reports an error with this workaround: error: Cannot assign to final name "__stdout__" [misc]
1 parent b0e8a1c commit f2461c1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/buildstream/_testing/runcli.py

-8
Original file line numberDiff line numberDiff line change
@@ -349,14 +349,6 @@ def run(self, project=None, silent=False, env=None, cwd=None, options=None, args
349349
if env is not None:
350350
stack.enter_context(environment(env))
351351

352-
# Ensure we have a working stdout - required to work
353-
# around a bug that appears to cause AIX to close
354-
# sys.__stdout__ after setup.py
355-
try:
356-
sys.__stdout__.fileno()
357-
except ValueError:
358-
sys.__stdout__ = open("/dev/stdout", "w", encoding="utf-8") # pylint: disable=consider-using-with
359-
360352
result = self._invoke(bst_cli, bst_args, binary_capture=binary_capture)
361353

362354
# Some informative stdout we can observe when anything fails

0 commit comments

Comments
 (0)