diff options
author | John Snow | 2019-06-27 23:28:14 +0200 |
---|---|---|
committer | Eduardo Habkost | 2019-07-02 00:02:10 +0200 |
commit | abf0bf998dcb20807195018bfdd7abca2930dbbd (patch) | |
tree | 1e8edb1d32d794a2ca1ac2e43bdffa7777155c36 /tests/acceptance | |
parent | qmp: make qmp-shell work with python3 (diff) | |
download | qemu-abf0bf998dcb20807195018bfdd7abca2930dbbd.tar.gz qemu-abf0bf998dcb20807195018bfdd7abca2930dbbd.tar.xz qemu-abf0bf998dcb20807195018bfdd7abca2930dbbd.zip |
python/qemu: split QEMUMachine out from underneath __init__.py
It's not obvious that something named __init__.py actually houses
important code that isn't relevant to python packaging glue. Move the
QEMUMachine and related error classes out into their own module.
Adjust users to the new import location.
Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20190627212816.27298-2-jsnow@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r-- | tests/acceptance/avocado_qemu/__init__.py | 2 | ||||
-rw-r--r-- | tests/acceptance/virtio_version.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/avocado_qemu/__init__.py index 2b236a1cf0..aee5d820ed 100644 --- a/tests/acceptance/avocado_qemu/__init__.py +++ b/tests/acceptance/avocado_qemu/__init__.py @@ -17,7 +17,7 @@ import avocado SRC_ROOT_DIR = os.path.join(os.path.dirname(__file__), '..', '..', '..') sys.path.append(os.path.join(SRC_ROOT_DIR, 'python')) -from qemu import QEMUMachine +from qemu.machine import QEMUMachine def is_readable_executable_file(path): return os.path.isfile(path) and os.access(path, os.R_OK | os.X_OK) diff --git a/tests/acceptance/virtio_version.py b/tests/acceptance/virtio_version.py index 8b97453ff8..33593c29dd 100644 --- a/tests/acceptance/virtio_version.py +++ b/tests/acceptance/virtio_version.py @@ -12,7 +12,7 @@ import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python')) -from qemu import QEMUMachine +from qemu.machine import QEMUMachine from avocado_qemu import Test # Virtio Device IDs: |