summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-01-16 16:36:40 +1300
committerJelmer Vernooij <jelmer@samba.org>2010-01-16 16:36:40 +1300
commit40935f3e52ab8a7695c871e1f8176aea70eef902 (patch)
treed686d778bb72fa290c0780ed5127bf8f65ec1250 /python
parent74eac7607f3d3e955dead3432c8bde7b10e93c6d (diff)
downloadsubunit-git-40935f3e52ab8a7695c871e1f8176aea70eef902.tar.gz
Ignore SUBUNIT_FORMATTER if it is empty.
Diffstat (limited to 'python')
-rw-r--r--python/subunit/__init__.py2
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