Skip to content

Commit db47c89

Browse files
committed
scripts: ci: check_compliance: no need for lxml anymore
Remove an old workaround requiring lxml to be present as junitparser was not working with xml.etree.ElementTree until version 3.0.0. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 82c955a commit db47c89

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

scripts/ci/check_compliance.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,14 +2250,6 @@ def _main(args):
22502250
def main(argv=None):
22512251
args = parse_args(argv)
22522252

2253-
try:
2254-
# pylint: disable=unused-import
2255-
from lxml import etree
2256-
except ImportError:
2257-
print("\nERROR: Python module lxml not installed, unable to proceed")
2258-
print("See https://github.com/weiwei/junitparser/issues/99")
2259-
return 1
2260-
22612253
try:
22622254
n_fails = _main(args)
22632255
except BaseException:

scripts/requirements-build-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ pytest
1818
mypy
1919

2020
# used for JUnit XML parsing in CTest harness
21-
junitparser
21+
junitparser>=3.0.0

0 commit comments

Comments
 (0)