Skip to content

Commit f3f35b7

Browse files
cpcloudclaude
andcommitted
test(cufile): drop useless yield from prewarm fixture
The _cufile_driver_prewarm fixture has no teardown — the open/close cycle is setup-only. Keeping a trailing `yield` made ruff's PT022 (pytest-useless-yield-fixture) flag it. Drop the yield so the fixture runs as pure setup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0ac7498 commit f3f35b7

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

cuda_bindings/tests/test_cufile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ def _cufile_driver_prewarm():
183183
cufile.driver_close()
184184
finally:
185185
cuda.cuDevicePrimaryCtxRelease(device)
186-
yield
187186

188187

189188
@pytest.fixture

0 commit comments

Comments
 (0)