Skip to content

Commit 65ae457

Browse files
committed
fixup! test(core.utils): cover tuple-valued ptxas_options in driver-linker rejection
1 parent cdfd5e3 commit 65ae457

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cuda_core/tests/test_program_cache.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,10 @@ def test_make_program_cache_key_nvvm_probe_changes_key(monkeypatch):
362362
pytest.param({"ptxas_options": "-v"}, id="ptxas_options_str"),
363363
pytest.param({"ptxas_options": ["-v", "-O2"]}, id="ptxas_options_list"),
364364
pytest.param({"ptxas_options": []}, id="ptxas_options_empty_list"),
365+
# ProgramOptions.ptxas_options also accepts tuples (and frozenset ()
366+
# literal is falsy). Lock in parity for all accepted shapes.
367+
pytest.param({"ptxas_options": ("-v",)}, id="ptxas_options_tuple"),
368+
pytest.param({"ptxas_options": ()}, id="ptxas_options_empty_tuple"),
365369
pytest.param({"split_compile": 0}, id="split_compile_zero"),
366370
pytest.param({"split_compile": 4}, id="split_compile_nonzero"),
367371
# split_compile_extended is a LinkerOptions-only field; ProgramOptions

0 commit comments

Comments
 (0)