diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2010-01-16 16:36:40 +1300 |
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2010-01-16 16:36:40 +1300 |
| commit | 40935f3e52ab8a7695c871e1f8176aea70eef902 (patch) | |
| tree | d686d778bb72fa290c0780ed5127bf8f65ec1250 /python | |
| parent | 74eac7607f3d3e955dead3432c8bde7b10e93c6d (diff) | |
| download | subunit-git-40935f3e52ab8a7695c871e1f8176aea70eef902.tar.gz | |
Ignore SUBUNIT_FORMATTER if it is empty.
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py index 754f974..751e853 100644 --- a/python/subunit/__init__.py +++ b/python/subunit/__init__.py @@ -1119,7 +1119,7 @@ def get_default_formatter(): :return: A file-like object. """ formatter = os.getenv("SUBUNIT_FORMATTER") - if formatter is not None: + if formatter is not None and formatter != "": return os.popen(formatter, "w") else: return sys.stdout |
