diff options
author | Anthony Sottile <asottile@umich.edu> | 2023-01-29 14:58:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-29 11:58:35 -0800 |
commit | 079f839d819f03413939409c58930d14017fd84f (patch) | |
tree | 49583b44adedd0a4afbae7e14874b4200180ab31 | |
parent | 3295838a51cda058326c7ab29b26d89b7e9e70ac (diff) | |
download | tox-git-079f839d819f03413939409c58930d14017fd84f.tar.gz |
fix assertions in test_graph to actually test results (#2906)
-rw-r--r-- | tests/util/test_graph.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/util/test_graph.py b/tests/util/test_graph.py index b6b60ec2..77c1ab1e 100644 --- a/tests/util/test_graph.py +++ b/tests/util/test_graph.py @@ -33,7 +33,7 @@ def test_topological_order_cycle() -> None: graph: dict[str, set[str]] = OrderedDict() graph["A"] = {"B", "C"} graph["B"] = {"A"} - with pytest.raises(ValueError, match="A | B"): + with pytest.raises(ValueError, match=r"^A \| B$"): stable_topological_sort(graph) @@ -68,5 +68,5 @@ def test_two_sub_graph_circle() -> None: graph["A"] = {"B", "C"} graph["B"] = {"A"} graph["C"] = set() - with pytest.raises(ValueError, match="A | B"): + with pytest.raises(ValueError, match=r"^A \| B$"): stable_topological_sort(graph) |