Skip to content

Commit

Permalink
fix docpipeline report (#1296)
Browse files Browse the repository at this point in the history
Just to handle error cases.
  • Loading branch information
mmatera authored Jan 17, 2025
1 parent 268c2f6 commit c37c237
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions mathics/docpipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,8 @@ def show_report(test_pipeline):
"(not all tests are accounted for due to --)",
)
test_pipeline.print_and_log("Failed:")
for part, chapter, section in sorted(test_status.failed_sections):
for part, chapter, *section in sorted(test_status.failed_sections):
section = "/".join(section)
test_pipeline.print_and_log(f" - {section} in {part} / {chapter}")

if test_parameters.data_path is not None and (
Expand Down Expand Up @@ -731,12 +732,6 @@ def save_doctest_data(doctest_pipeline: DocTestPipeline):
doctest_pipeline.print_and_log(
f"Writing internal document data to {doctest_latex_data_path}"
)
i = 0
for key in output_data:
i = i + 1
doctest_pipeline.print_and_log(f"{key}, {output_data[key]}")
if i > 9:
break
with open(doctest_latex_data_path, "wb") as output_file:
pickle.dump(output_data, output_file, 4)

Expand Down

0 comments on commit c37c237

Please sign in to comment.