Skip to content

Commit ccc5346

Browse files
committed
nit
1 parent bef9630 commit ccc5346

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ def library(request: pytest.FixtureRequest) -> Backend: # numpydoc ignore=PR01,
3838
("xfail_xp_backend", partial(xfail, request)),
3939
):
4040
for marker in request.node.iter_markers(marker_name):
41-
skip_library = marker.kwargs.get("library") or marker.args[0] # type: ignore[no-untyped-usage]
42-
if not isinstance(skip_library, Backend):
41+
library = marker.kwargs.get("library") or marker.args[0] # type: ignore[no-untyped-usage]
42+
if not isinstance(library, Backend):
4343
msg = f"argument of {marker_name} must be a Backend enum"
4444
raise TypeError(msg)
45-
if skip_library == elem:
46-
reason = skip_library.value
45+
if library == elem:
46+
reason = library.value
4747
with suppress(KeyError):
4848
reason += ":" + cast(str, marker.kwargs["reason"])
4949
skip_or_xfail(reason=reason)

0 commit comments

Comments
 (0)