Skip to content

Commit 7fe7373

Browse files
committed
Fix decoding of new attributes when present.
Closes kyrus#45
1 parent 999e618 commit 7fe7373

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

junit_xml/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ def build_xml_doc(self, encoding=None):
135135
test_suite_attributes['package'] = decode(self.package, encoding)
136136
if self.timestamp:
137137
test_suite_attributes['timestamp'] = decode(self.timestamp, encoding)
138-
if self.timestamp:
138+
if self.file:
139139
test_suite_attributes['file'] = decode(self.file, encoding)
140-
if self.timestamp:
140+
if self.log:
141141
test_suite_attributes['log'] = decode(self.log, encoding)
142-
if self.timestamp:
142+
if self.url:
143143
test_suite_attributes['url'] = decode(self.url, encoding)
144144

145145
xml_element = ET.Element("testsuite", test_suite_attributes)

0 commit comments

Comments
 (0)