Skip to content

Commit 12d8e47

Browse files
committed
🚸 Change error message
1 parent 145b5bf commit 12d8e47

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

python/swiflow/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _infer_layers_impl(pred: Mapping[_V, MutableSet[_V]], succ: Mapping[_V, Abst
5454
next_work.add(v)
5555
work = next_work
5656
if len(ret) != len(succ):
57-
msg = "Failed to determine layers for all nodes."
57+
msg = "Cannot satisfy all the partial order constraints."
5858
raise ValueError(msg)
5959
return ret
6060

tests/test_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,5 @@ def test_dag(self) -> None:
142142
def test_cycle(self) -> None:
143143
g: nx.Graph[int] = nx.Graph([(0, 1), (1, 2), (2, 0)])
144144
flow = {0: {1}, 1: {2}, 2: {0}}
145-
with pytest.raises(ValueError, match=r".*determine.*"):
145+
with pytest.raises(ValueError, match=r".*constraints.*"):
146146
common.infer_layers(g, flow)

0 commit comments

Comments
 (0)