Skip to content

Commit 868142e

Browse files
committed
test(cuda.core): align closed context error check
Expect the shared Context checker message so the green-context test matches the standardized validation path.
1 parent fe2d27d commit 868142e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cuda_core/tests/test_green_context.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_context_handle_alias_and_closed_queries(init_cuda, sm_resource):
231231
ctx.close()
232232
assert ctx.handle is None
233233
assert ctx.is_green is False
234-
with pytest.raises(RuntimeError, match="Cannot query resources"):
234+
with pytest.raises(RuntimeError, match="Context has been closed"):
235235
_ = ctx.resources
236236

237237

0 commit comments

Comments
 (0)