From bf1195612c00b008ea67ea0472ae527956eb66fe Mon Sep 17 00:00:00 2001 From: Yilei Yang Date: Tue, 19 Mar 2024 22:04:48 -0700 Subject: [PATCH] Fix two logging calls in the test helper (#4286) They were missing formatting interpolation operators. --- tests/optional.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/optional.py b/tests/optional.py index 70ee823e316..cbb2df7c2f8 100644 --- a/tests/optional.py +++ b/tests/optional.py @@ -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)))