NEXT (In development)
---------------------
+BUGFIXES
+~~~~~~~~
+
+* SUBUNIT_FORMATTER which has not been honoured for years is now removed from
+ the codebase. (Jelmer Vernooij)
+
1.0.0
-----
return self.failed_tests == 0
-def get_default_formatter():
- """Obtain the default formatter to write to.
-
- :return: A file-like object.
- """
- formatter = os.getenv("SUBUNIT_FORMATTER")
- if formatter:
- return os.popen(formatter, "w")
- else:
- stream = sys.stdout
- if sys.version_info > (3, 0):
- if safe_hasattr(stream, 'buffer'):
- stream = stream.buffer
- return stream
-
-
def read_test_list(path):
"""Read a list of test ids from a file on disk.
from testtools import ExtendedToStreamDecorator
-from subunit import StreamResultToBytes, get_default_formatter
+from subunit import StreamResultToBytes
from subunit.test_results import AutoTimingTestResultDecorator
from testtools.run import (
BUFFEROUTPUT,
# stdout is None except in unit tests.
if stdout is None:
stdout = sys.stdout
- # XXX: This is broken code- SUBUNIT_FORMATTER is not being honoured.
- stream = get_default_formatter()
# Disable the default buffering, for Python 2.x where pdb doesn't do it
# on non-ttys.
if hasattr(stdout, 'fileno'):