diff --git a/stestr/subunit_runner/run.py b/stestr/subunit_runner/run.py index 9fab3e6..61d9d64 100644 --- a/stestr/subunit_runner/run.py +++ b/stestr/subunit_runner/run.py @@ -71,14 +71,7 @@ def list(self, test, loader=None): def _list(self, test): test_ids, errors = program.list_test(test) - try: - fileno = self.stream.fileno() - except Exception: - fileno = None - if fileno is not None: - stream = os.fdopen(fileno, "wb", 0) - else: - stream = self.stream + stream = self.stream result = StreamResultToBytes(stream) for test_id in test_ids: result.status(test_id=test_id, test_status="exists")