Skip to content

Commit bf11956

Browse files
authored
Fix two logging calls in the test helper (#4286)
They were missing formatting interpolation operators.
1 parent 97993f9 commit bf11956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/optional.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def pytest_configure(config: "Config") -> None:
9393
ot_run |= {no(excluded) for excluded in ot_markers - ot_run}
9494
ot_markers |= {no(m) for m in ot_markers}
9595

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

121121

0 commit comments

Comments
 (0)