subunit/subunit-decode-binary-to-unicode.patch

14 lines
606 B
Diff
Raw Normal View History

2019-12-09 19:58:38 +08:00
diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py
index 63c7d66..e735437 100644
2019-12-09 19:58:38 +08:00
--- a/python/subunit/__init__.py
+++ b/python/subunit/__init__.py
@@ -556,7 +556,7 @@ class TestProtocolServer(object):
2019-12-09 19:58:38 +08:00
def _handleTime(self, offset, line):
# Accept it, but do not do anything with it yet.
try:
- event_time = iso8601.parse_date(line[offset:-1])
+ event_time = iso8601.parse_date(line[offset:-1].decode('utf8'))
except TypeError:
raise TypeError(_u("Failed to parse %r, got %r")
% (line, sys.exec_info[1]))