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

3
NEWS
View file

@ -11,6 +11,9 @@ New in spot 2.5.2.dev (not yet released)
- "autfilt -B --sat-minimize" was incorrectly producing
transition-based automata.
- Using spot.automata("cmd...|") to read just a few automata out of
an infinite stream would not properly terminate the command.
New in spot 2.5.2 (2018-03-25)
Bugs fixed: