MCPcopy Index your code
hub / github.com/python/cpython / get_xml_element

Method get_xml_element

Lib/test/libregrtest/testresult.py:133–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 super().addUnexpectedSuccess(test)
132
133 def get_xml_element(self):
134 if not self.USE_XML:
135 raise ValueError("USE_XML is false")
136 e = self.__suite
137 e.set('tests', str(self.testsRun))
138 e.set('errors', str(len(self.errors)))
139 e.set('failures', str(len(self.failures)))
140 return e
141
142class QuietRegressionTestRunner:
143 def __init__(self, stream, buffer=False):

Callers 2

_run_suiteFunction · 0.80
testresult.pyFile · 0.80

Calls 2

strFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected