aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillian Rampazzo <willianr@redhat.com>2021-09-20 17:49:29 -0300
committerPhilippe Mathieu-Daudé <philmd@redhat.com>2021-09-27 19:06:25 +0200
commite410bac0701b6f6a3d45990caf9aaca7f8d46bb3 (patch)
treed3bd474aab1bf5c816d3c998e1e7cbeab09a980f
parent20bf915418bcd4c2f14ce417764cc9f9c63bafff (diff)
downloadqemu-e410bac0701b6f6a3d45990caf9aaca7f8d46bb3.zip
qemu-e410bac0701b6f6a3d45990caf9aaca7f8d46bb3.tar.gz
qemu-e410bac0701b6f6a3d45990caf9aaca7f8d46bb3.tar.bz2
avocado_qemu: fix import module based on isort
Signed-off-by: Willian Rampazzo <willianr@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210920204932.94132-4-willianr@redhat.com>
-rw-r--r--tests/acceptance/avocado_qemu/__init__.py18
1 files changed, 5 insertions, 13 deletions
diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/avocado_qemu/__init__.py
index d2077d6..edb9ed7 100644
--- a/tests/acceptance/avocado_qemu/__init__.py
+++ b/tests/acceptance/avocado_qemu/__init__.py
@@ -12,19 +12,13 @@ import logging
import os
import shutil
import sys
-import uuid
import tempfile
+import uuid
import avocado
-
-from avocado.utils import cloudinit
-from avocado.utils import datadrainer
-from avocado.utils import network
-from avocado.utils import ssh
-from avocado.utils import vmimage
+from avocado.utils import cloudinit, datadrainer, network, ssh, vmimage
from avocado.utils.path import find_command
-
#: The QEMU build root directory. It may also be the source directory
#: if building from the source dir, but it's safer to use BUILD_DIR for
#: that purpose. Be aware that if this code is moved outside of a source
@@ -42,11 +36,9 @@ else:
sys.path.append(os.path.join(SOURCE_DIR, 'python'))
from qemu.machine import QEMUMachine
-from qemu.utils import (
- get_info_usernet_hostfwd_port,
- kvm_available,
- tcg_available,
-)
+from qemu.utils import (get_info_usernet_hostfwd_port, kvm_available,
+ tcg_available)
+
def is_readable_executable_file(path):
return os.path.isfile(path) and os.access(path, os.R_OK | os.X_OK)