Skip to content

Commit f35670a

Browse files
committed
Remove enum explanation health tests from cuda_core (#1712)
These tests now live in cuda_bindings/tests/test_enum_explanations.py, where they belong alongside the explanation dicts they verify. Made-with: Cursor
1 parent 85d9e66 commit f35670a

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

cuda_core/tests/test_cuda_utils.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,6 @@
1111
from cuda.core._utils.clear_error_support import assert_type_str_or_bytes_like, raise_code_path_meant_to_be_unreachable
1212

1313

14-
def test_driver_cu_result_explanations_health():
15-
expl_dict = cuda_utils.DRIVER_CU_RESULT_EXPLANATIONS
16-
17-
# Ensure all CUresult enums are in expl_dict
18-
known_codes = set()
19-
for error in driver.CUresult:
20-
code = int(error)
21-
assert code in expl_dict
22-
known_codes.add(code)
23-
24-
if cuda_utils.get_binding_version() >= (13, 0):
25-
# Ensure expl_dict has no codes not known as a CUresult enum
26-
extra_expl = sorted(set(expl_dict.keys()) - known_codes)
27-
assert not extra_expl
28-
29-
30-
def test_runtime_cuda_error_explanations_health():
31-
expl_dict = cuda_utils.RUNTIME_CUDA_ERROR_EXPLANATIONS
32-
33-
# Ensure all cudaError_t enums are in expl_dict
34-
known_codes = set()
35-
for error in runtime.cudaError_t:
36-
code = int(error)
37-
assert code in expl_dict
38-
known_codes.add(code)
39-
40-
if cuda_utils.get_binding_version() >= (13, 0):
41-
# Ensure expl_dict has no codes not known as a cudaError_t enum
42-
extra_expl = sorted(set(expl_dict.keys()) - known_codes)
43-
assert not extra_expl
44-
45-
4614
def test_check_driver_error():
4715
num_unexpected = 0
4816
for error in driver.CUresult:

0 commit comments

Comments
 (0)