diff options
author | John Snow | 2020-10-07 01:58:05 +0200 |
---|---|---|
committer | John Snow | 2020-10-20 15:37:57 +0200 |
commit | 9223fda464690b83a2b1f1487163f50602454c2e (patch) | |
tree | 0bae4863fc931796bcdf6796c593e2e18a7255a5 /tests/qemu-iotests/iotests.py | |
parent | python/machine.py: Add _qmp access shim (diff) | |
download | qemu-9223fda464690b83a2b1f1487163f50602454c2e.tar.gz qemu-9223fda464690b83a2b1f1487163f50602454c2e.tar.xz qemu-9223fda464690b83a2b1f1487163f50602454c2e.zip |
python/machine.py: fix _popen access
As always, Optional[T] causes problems with unchecked access. Add a
helper that asserts the pipe is present before we attempt to talk with
it.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 20201006235817.3280413-9-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/iotests.py')
0 files changed, 0 insertions, 0 deletions