[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/6] avocado_qemu: fix import module based on isort
From: |
Willian Rampazzo |
Subject: |
[PATCH 3/6] avocado_qemu: fix import module based on isort |
Date: |
Mon, 20 Sep 2021 17:49:29 -0300 |
Signed-off-by: Willian Rampazzo <willianr@redhat.com>
---
tests/acceptance/avocado_qemu/__init__.py | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/tests/acceptance/avocado_qemu/__init__.py
b/tests/acceptance/avocado_qemu/__init__.py
index d2077d63cd..edb9ed7485 100644
--- a/tests/acceptance/avocado_qemu/__init__.py
+++ b/tests/acceptance/avocado_qemu/__init__.py
@@ -12,19 +12,13 @@
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 @@
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)
--
2.31.1
- [PATCH 0/6] avocado_qemu: small fixes and tweaks, Willian Rampazzo, 2021/09/20
- [PATCH 2/6] avocado_qemu: standardize supper() call following PEP3135, Willian Rampazzo, 2021/09/20
- [PATCH 1/6] Acceptance Tests: add standard clean up at test tearDown(), Willian Rampazzo, 2021/09/20
- [PATCH 3/6] avocado_qemu: fix import module based on isort,
Willian Rampazzo <=
- [PATCH 4/6] avocado_qemu: tweak ssh connect method, Willian Rampazzo, 2021/09/20
- [PATCH 5/6] avocado_qemu: explicitly return None to avoid R1710, Willian Rampazzo, 2021/09/20
- [PATCH 6/6] avocado_qemu: fix inheritance order on LinuxTest class, Willian Rampazzo, 2021/09/20
- Re: [PATCH 0/6] avocado_qemu: small fixes and tweaks, Philippe Mathieu-Daudé, 2021/09/27
- Re: [PATCH 0/6] avocado_qemu: small fixes and tweaks, Philippe Mathieu-Daudé, 2021/09/27