python: tests exceptions raised by is_weak_scc() and friends

* tests/python/except.py: Here.
This commit is contained in:
Alexandre Duret-Lutz 2018-05-18 17:45:16 +02:00
parent 2f8ae55f6b
commit 00c3271c72

View file

@ -53,6 +53,13 @@ try:
except ValueError as e: except ValueError as e:
assert """unexpected '=' at position 3""" in str(e) assert """unexpected '=' at position 3""" in str(e)
si = spot.scc_info(aut)
for meth in ('scc_has_rejecting_cycle', 'is_inherently_weak_scc',
'is_weak_scc', 'is_complete_scc', 'is_terminal_scc'):
try:
getattr(spot, meth)(si, 20)
except ValueError as e:
assert "invalid SCC number" in str(e)
si = spot.scc_info(alt) si = spot.scc_info(alt)
try: try: