All tests are None in TestSuite in Python 3
Opened this issue · 2 comments
citizen-stig commented
Populated testsuite instance has a _cleanup flag set to True in python 3 and it's omitted in python 2
As result in python 3 final test suite looks like this:
<xunitparser.TestSuite tests=[None, None, None]>
Workaround is define custom testsuite class in parser:
import xunitparser
class TestSuite(xunitparser.TestSuite):
_cleanup = False
class MyParser(xunitparser.Parser):
TS_CLASS = TestSuite
parser = MyParser()
ts, tr = parser.parse(open('nosetests.xml'))
rosomaxa commented
Is there any chance this can be prioritized? With py2 going away this becomes critical.
citizen-stig commented
This repository is abandoned.