Skip to content

Commit ca73fb4

Browse files
rparolinclaude
andcommitted
cuda.core: fix test_utils parametrize collection error on pytest 8.4+
`@pytest.mark.parametrize("in_arr,", _cpu_array_samples())` has a stray trailing comma in the names string. Older pytest tolerated it, but pytest 8.4+ (used in CI) treats `"in_arr,"` as a request to unpack each argvalue across multiple names — so a 3-element sample array becomes "3 values for 1 name" and the whole test session aborts at collection ("1 error during collection"), failing every GPU test job. Drop the trailing comma so each array sample is one parameter. Pre-existing (introduced in #1894, also on main); fixing here to unblock CI. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 940858f commit ca73fb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cuda_core/tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _cpu_array_samples():
148148
return samples
149149

150150

151-
@pytest.mark.parametrize("in_arr,", _cpu_array_samples())
151+
@pytest.mark.parametrize("in_arr", _cpu_array_samples())
152152
class TestViewCPU:
153153
def test_args_viewable_as_strided_memory_cpu(self, in_arr):
154154
@args_viewable_as_strided_memory((0,))

0 commit comments

Comments
 (0)