Skip to content

Commit

Permalink
BUG Fix upstream updater when test collection fails (scikit-learn#21655)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjpfan committed Nov 13, 2021
1 parent 016df33 commit 2368132
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maint_tools/create_issue_from_juint.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ def create_or_update_issue(body):
tree = ET.parse(args.junit_file)
failure_cases = []

# Check if test collection failed
error = tree.find("./testsuite/testcase/error")
if error is not None:
# Get information for test collection error
failure_cases.append({"title": "Test Collection Failure", "body": error.text})

for item in tree.iter("testcase"):
failure = item.find("failure")
if failure is None:
Expand Down

0 comments on commit 2368132

Please sign in to comment.