From acfc653d083d09772df32f67f90d7cc1603ed3fe Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 11 Dec 2014 09:56:12 +1300 Subject: Remove support for SUBUNIT_FORMATTER, which has been broken for a long time. --- python/subunit/__init__.py | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'python/subunit/__init__.py') diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index 7f0aa8c..bfa27a1 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -1250,22 +1250,6 @@ class TestResultStats(testresult.TestResult): 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. -- cgit v1.2.1