diff --git a/cuda_core/tests/graph/test_graph_update.py b/cuda_core/tests/graph/test_graph_update.py index 8e7881f8e9f..65fd89ad03e 100644 --- a/cuda_core/tests/graph/test_graph_update.py +++ b/cuda_core/tests/graph/test_graph_update.py @@ -191,7 +191,7 @@ def test_graph_update_topology_mismatch(init_cuda): launch(gb2, LaunchConfig(grid=1, block=1), empty_kernel) gb2.end_building() - expected = r"Graph update failed: The update failed because the topology changed \(CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED\)" + expected = r"Graph update failed: .+ \(CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED\)" with pytest.raises(CUDAError, match=expected): graph.update(gb2)