summaryrefslogtreecommitdiff
path: root/nose/plugins/xunit.py
diff options
context:
space:
mode:
Diffstat (limited to 'nose/plugins/xunit.py')
-rw-r--r--nose/plugins/xunit.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nose/plugins/xunit.py b/nose/plugins/xunit.py
index 90b52f5..b43ff04 100644
--- a/nose/plugins/xunit.py
+++ b/nose/plugins/xunit.py
@@ -120,11 +120,12 @@ def exc_message(exc_info):
class Tee(object):
def __init__(self, encoding, *args):
- self._encoding = encoding
+ self.encoding = encoding
self._streams = args
+ self.errors = None
def write(self, data):
- data = force_unicode(data, self._encoding)
+ data = force_unicode(data, self.encoding)
for s in self._streams:
s.write(data)