Skip to content

Commit 8a6738b

Browse files
authored
fix xfail mark
1 parent b1f07a3 commit 8a6738b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cuda_core/tests/test_program.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from cuda.core.experimental._module import Kernel, ObjectCode
1414

1515

16-
@pytest.fixture
1716
def can_load_generated_ptx():
1817
_, driver_ver = cuda.cuDriverGetVersion()
1918
_, nvrtc_major, nvrtc_minor = nvrtc.nvrtcVersion()
@@ -42,7 +41,7 @@ def test_program_init_invalid_code_format():
4241

4342

4443
# TODO: incorporate this check in Program
45-
@pytest.mark.xfail(not can_load_generated_ptx, reason="PTX version too new")
44+
@pytest.mark.xfail(not can_load_generated_ptx(), reason="PTX version too new")
4645
def test_program_compile_valid_target_type():
4746
code = 'extern "C" __global__ void my_kernel() {}'
4847
program = Program(code, "c++")

0 commit comments

Comments
 (0)