Fix two logging calls in the test helper (#4286)

They were missing formatting interpolation operators.
This commit is contained in:
Yilei Yang 2024-03-19 22:04:48 -07:00 committed by GitHub
parent 97993f997f
commit bf1195612c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}")
@ -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)))