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

Does not work with newer xml.etree #5

Closed
osynge opened this issue Dec 5, 2022 · 0 comments
Closed

Does not work with newer xml.etree #5

osynge opened this issue Dec 5, 2022 · 0 comments

Comments

@osynge
Copy link

osynge commented Dec 5, 2022

Fails with:

(py38) $/home/HOME/.local/bin/vjunit  -f  ./test-results/pytest-report-ordered-py39.xml 
Traceback (most recent call last):
  File "/home/HOME/.local/bin/vjunit", line 8, in <module>
    sys.exit(main())
  File "/home/HOME/.local/lib/python3.9/site-packages/vjunit/__main__.py", line 13, in main
    vjunit.convert(args.file, args.output)
  File "/home/HOME/.local/lib/python3.9/site-packages/vjunit/vjunit.py", line 80, in convert
    testsuites = self.parse(path)
  File "/home/HOME/.local/lib/python3.9/site-packages/vjunit/vjunit.py", line 22, in parse
    return self.parse_content(self._load_file(path))
  File "/home/HOME/.local/lib/python3.9/site-packages/vjunit/vjunit.py", line 32, in parse_content
    children = testcase.getchildren()
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'
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