melexis / warnings-plugin

Command-line tool for marking builds with too many warnings as failed. A command-line alternative for https://github.com/jenkinsci/warnings-plugin. Useable with plugin-less CI systems like Gitlab-CI and even Travis-CI
Apache License 2.0
7 stars 3 forks source link

Support lxml #105

Closed JasperCraeghs closed 3 years ago

JasperCraeghs commented 3 years ago

In PR #104 lxml was dropped as dependency. This was released as version 3.1.0. However, when lxml is installed, use of the JUnitChecker resulted in the following error:

TypeError: Type 'xml.etree.ElementTree.Element' cannot be serialized.

This is because the dependency junitparser prefers lxml over the built-in xml module as seen on this line.