[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/6] avocado_qemu: explicitly return None to avoid R1710
From: |
Willian Rampazzo |
Subject: |
[PATCH 5/6] avocado_qemu: explicitly return None to avoid R1710 |
Date: |
Mon, 20 Sep 2021 17:49:31 -0300 |
The linter is complaining the `pick_default_qemu_bin` is not explicitly
returning None. Fix it to explicitly return None and avoid R1710
inconsistent-return-statements.
Signed-off-by: Willian Rampazzo <willianr@redhat.com>
---
tests/acceptance/avocado_qemu/__init__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/acceptance/avocado_qemu/__init__.py
b/tests/acceptance/avocado_qemu/__init__.py
index c3613f9262..35318ce2a9 100644
--- a/tests/acceptance/avocado_qemu/__init__.py
+++ b/tests/acceptance/avocado_qemu/__init__.py
@@ -72,6 +72,7 @@ def pick_default_qemu_bin(arch=None):
qemu_bin_relative_path)
if is_readable_executable_file(qemu_bin_from_bld_dir_path):
return qemu_bin_from_bld_dir_path
+ return None
def _console_interaction(test, success_message, failure_message,
--
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, 2021/09/20
- [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 <=
- [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