Skip to content

Commit

Permalink
Fix two logging calls in the test helper (#4286)
Browse files Browse the repository at this point in the history
They were missing formatting interpolation operators.
  • Loading branch information
yilei authored Mar 20, 2024
1 parent 97993f9 commit bf11956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/optional.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def pytest_configure(config: "Config") -> None:
ot_run |= {no(excluded) for excluded in ot_markers - ot_run}
ot_markers |= {no(m) for m in ot_markers}

log.info("optional tests to run:", ot_run)
log.info("optional tests to run: %s", ot_run)
unknown_tests = ot_run - ot_markers
if unknown_tests:
raise ValueError(f"Unknown optional tests wanted: {unknown_tests!r}")
Expand All @@ -115,7 +115,7 @@ def pytest_collection_modifyitems(config: "Config", items: "List[Node]") -> None
optional_markers_on_test & enabled_optional_markers
):
continue
log.info("skipping non-requested optional", item)
log.info("skipping non-requested optional: %s", item)
item.add_marker(skip_mark(frozenset(optional_markers_on_test)))


Expand Down

0 comments on commit bf11956

Please sign in to comment.