Skip to content

Commit 78ffb81

Browse files
committed
Fix cudla error string expectation for canonical status names
— codex GPT-6 on behalf of Ralf — Expect the uppercase canonical status name in CudlaError messages while retaining coverage of the legacy enum alias and checking its identity. Signed-off-by: Ralf W. Grosse-Kunstleve <[email protected]>
1 parent 2f692e7 commit 78ffb81

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎cuda_bindings_13/tests/cudla/test_cudla_bindings.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,9 @@ def test_cudla_error_stores_status(self):
197197
assert err.status == int(cudla.Status.ErrorInvalidParam)
198198

199199
def test_cudla_error_str(self):
200+
assert cudla.Status.ErrorInvalidParam is cudla.Status.ERROR_INVALID_PARAM
200201
err = cudla.CudlaError(int(cudla.Status.ErrorInvalidParam))
201-
assert "ErrorInvalidParam" in str(err)
202+
assert "ERROR_INVALID_PARAM" in str(err)
202203

203204

204205
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)