Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All tests are None in TestSuite in Python 3 #10

Open
citizen-stig opened this issue Jun 6, 2016 · 2 comments
Open

All tests are None in TestSuite in Python 3 #10

citizen-stig opened this issue Jun 6, 2016 · 2 comments

Comments

@citizen-stig
Copy link

citizen-stig commented Jun 6, 2016

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'))
@citizen-stig citizen-stig changed the title All tests are cleared in TestSuite in Python 3 All tests are None in TestSuite in Python 3 Jun 6, 2016
@rosomaxa
Copy link

Is there any chance this can be prioritized? With py2 going away this becomes critical.

@citizen-stig
Copy link
Author

This repository is abandoned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants