subunit/subunit-decode-binary-to-unicode.patch
huangtianhua 7f10bea380 Upgrade to 1.4.0 to support OpenStack-W
This upgrades to 1.4.0 and drops the patches
which have been upstreamed.
2021-07-13 08:11:35 +00:00

14 lines
606 B
Diff

diff --git a/python/subunit/__init__.py b/python/subunit/__init__.py
index 63c7d66..e735437 100644
--- a/python/subunit/__init__.py
+++ b/python/subunit/__init__.py
@@ -556,7 +556,7 @@ class TestProtocolServer(object):
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]))