diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2014-12-02 23:48:46 +0000 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2014-12-11 09:56:12 +1300 |
| commit | a0f4925f4cb3afe8aab53993d521141606ae3ef8 (patch) | |
| tree | 113c023cea272012f9fead5d6a6e29700369b449 /python/subunit/__init__.py | |
| parent | a7ea9e11a2e6626f1e5726a5e2a5ad514e86921e (diff) | |
| download | subunit-git-a0f4925f4cb3afe8aab53993d521141606ae3ef8.tar.gz | |
Remove support for SUBUNIT_FORMATTER, which has been broken for a long time.
Diffstat (limited to 'python/subunit/__init__.py')
| -rw-r--r-- | python/subunit/__init__.py | 16 |
1 files changed, 0 insertions, 16 deletions
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. |
