Skip to content

Commit 6a162a2

Browse files
rluo8rwgk
andauthored
test: relax graph update topology mismatch regex to not depend on docstring text (#1902)
Co-authored-by: Ralf W. Grosse-Kunstleve <rwgkio@gmail.com>
1 parent 23ab9a0 commit 6a162a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda_core/tests/graph/test_graph_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def test_graph_update_topology_mismatch(init_cuda):
191191
launch(gb2, LaunchConfig(grid=1, block=1), empty_kernel)
192192
gb2.end_building()
193193

194-
expected = r"Graph update failed: The update failed because the topology changed \(CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED\)"
194+
expected = r"Graph update failed: .+ \(CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED\)"
195195
with pytest.raises(CUDAError, match=expected):
196196
graph.update(gb2)
197197

0 commit comments

Comments
 (0)