From 9ea78264278399919cc1b4f43a0849c9ba704527 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Tue, 24 Nov 2015 21:17:42 +0100 Subject: [PATCH] Junitxml: correct node reporter attribute names --- _pytest/junitxml.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/_pytest/junitxml.py b/_pytest/junitxml.py index 5f8fb1411..c4798b586 100644 --- a/_pytest/junitxml.py +++ b/_pytest/junitxml.py @@ -259,16 +259,16 @@ class LogXML(object): 'failure', 'skipped', ], 0) - self.nodere_porters = {} # nodeid -> _NodeReporter - self.nodere_porters_ordered = [] + self.node_reporters = {} # nodeid -> _NodeReporter + self.node_reporters_ordered = [] def node_reporter(self, nodeid): - if nodeid in self.nodere_porters: + if nodeid in self.node_reporters: #TODO: breasks for --dist=each - return self.nodere_porters[nodeid] + return self.node_reporters[nodeid] reporter = _NodeReporter(nodeid, self) - self.nodere_porters[nodeid] = reporter - self.nodere_porters_ordered.append(reporter) + self.node_reporters[nodeid] = reporter + self.node_reporters_ordered.append(reporter) return reporter def add_stats(self, key): @@ -355,7 +355,7 @@ class LogXML(object): logfile.write('') logfile.write(Junit.testsuite( - [x.to_xml() for x in self.nodere_porters_ordered], + [x.to_xml() for x in self.node_reporters_ordered], name="pytest", errors=self.stats['error'], failures=self.stats['failure'],