Skip to content

Commit 9d437b4

Browse files
tests: add libsemigroups v2.7.0 special case
1 parent e6c3329 commit 9d437b4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_actiondigraph.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
is_acyclic,
2626
topological_sort,
2727
wilo,
28+
compare_version_numbers,
29+
libsemigroups_version,
2830
)
2931

3032

@@ -60,8 +62,12 @@ def test_001():
6062
def test_003():
6163
g = ActionDigraph(17, 31)
6264
for i in range(17):
63-
with pytest.raises(RuntimeError):
65+
if compare_version_numbers(libsemigroups_version(), "2.7.0"):
6466
g.number_of_scc()
67+
else:
68+
with pytest.raises(RuntimeError):
69+
g.number_of_scc()
70+
6571
for j in range(31):
6672
g.add_edge(i, (7 * i + 23 * j) % 17, j)
6773

0 commit comments

Comments
 (0)