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 85db27694a
commit af6b09408a
4 changed files with 61 additions and 18 deletions

View file

@ -348,6 +348,7 @@ 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 \