python: make sure spot.automata() terminates the command

Fixes #341.

* python/spot/__init__.py (automata): Rewrite and simplify using
the subprocess context manager.
* tests/python/341.py: New file.
* tests/Makefile.am: Add it.
* NEWS: Mention the issue.
This commit is contained in:
Alexandre Duret-Lutz 2018-04-03 15:12:58 +02:00
parent 6afc2d45e0
commit cbfbf53617
4 changed files with 62 additions and 19 deletions

View file

@ -351,10 +351,10 @@ TESTS_ipython = \
# do not consider part of the documentation: those have to start
# with a _.
TESTS_python = \
python/341.py \
python/_altscc.ipynb \
python/_autparserr.ipynb \
python/_aux.ipynb \
python/_word.ipynb \
python/accparse2.py \
python/alarm.py \
python/alternating.py \
@ -362,6 +362,7 @@ TESTS_python = \
python/bddnqueen.py \
python/bugdet.py \
python/declenv.py \
python/_word.ipynb \
python/decompose_scc.py \
python/dualize.py \
python/except.py \