Skip to content

Commit e1a45b6

Browse files
committed
style(core): silence ruff ARG005 on unused lambda args in cache tests
1 parent 1967e6d commit e1a45b6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cuda_core/tests/test_program_compile_cache.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_name_expressions_affects_cache_key(monkeypatch):
9999
"""Different ``name_expressions`` must produce different cache keys."""
100100
sentinel = _make_sentinel_object_code()
101101
program = Program(_KERNEL, "c++", ProgramOptions(arch="sm_80"))
102-
monkeypatch.setattr(Program, "_raw_compile", lambda self, *args, **kwargs: sentinel)
102+
monkeypatch.setattr(Program, "_raw_compile", lambda _self, *_args, **_kwargs: sentinel)
103103
cache = _RecordingCache()
104104

105105
program.compile("cubin", name_expressions=("foo",), cache=cache)
@@ -177,7 +177,7 @@ def test_cache_write_exception_propagates(monkeypatch):
177177
"""Exceptions from cache.__setitem__ propagate after compile runs."""
178178
sentinel = _make_sentinel_object_code()
179179
program = Program(_KERNEL, "c++", ProgramOptions(arch="sm_80"))
180-
monkeypatch.setattr(Program, "_raw_compile", lambda self, *args, **kwargs: sentinel)
180+
monkeypatch.setattr(Program, "_raw_compile", lambda _self, *_args, **_kwargs: sentinel)
181181
cache = _RecordingCache()
182182
cache.set_side_effect = RuntimeError("disk full")
183183

@@ -192,7 +192,7 @@ def test_no_cache_kwarg_does_not_derive_key(monkeypatch):
192192
"""Without cache=, no cache-module functions run; compile goes straight through."""
193193
sentinel = _make_sentinel_object_code()
194194
program = Program(_KERNEL, "c++", ProgramOptions(arch="sm_80"))
195-
monkeypatch.setattr(Program, "_raw_compile", lambda self, *args, **kwargs: sentinel)
195+
monkeypatch.setattr(Program, "_raw_compile", lambda _self, *_args, **_kwargs: sentinel)
196196

197197
# If the implementation accidentally derived a key, it would call
198198
# make_program_cache_key. Replace it with a raising stub to catch that.

0 commit comments

Comments
 (0)