[PATCH 0/6] tests/functional: Fix various problems reported by pylint

Thomas Huth posted 6 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251015095454.1575318-1-thuth@redhat.com
Maintainers: Thomas Huth <thuth@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, "Daniel P. Berrangé" <berrange@redhat.com>
tests/functional/qemu_test/asset.py       |  24 ++-
tests/functional/qemu_test/decorators.py  | 176 ++++++++-------
tests/functional/qemu_test/linuxkernel.py |  10 +-
tests/functional/qemu_test/testcase.py    | 251 +++++++++++-----------
tests/functional/qemu_test/uncompress.py  |  40 ++--
tests/functional/qemu_test/utils.py       |  22 +-
6 files changed, 262 insertions(+), 261 deletions(-)
[PATCH 0/6] tests/functional: Fix various problems reported by pylint
Posted by Thomas Huth 1 month ago
Using pylint to improve the code quality in the tests/functional/qemu_test
a little bit, for example:

- put the doc strings in the right locations (after the "def" line, not
  in front of it)
- use the right indentation everywhere (4 spaces)
- use isinstance() instead of checking via type()
- use lazy logging strings

Thomas Huth (6):
  tests/functional: Fix problems in asset.py reported by pylint
  tests/functional: Fix problems in decorators.py reported by pylint
  tests/functional: Fix problems in linuxkerenl.py reported by pylint
  tests/functional: Fix problems in testcase.py reported by pylint
  tests/functional: Fix problems in uncompress.py reported by pylint
  tests/functional: Fix problems in utils.py reported by pylint

 tests/functional/qemu_test/asset.py       |  24 ++-
 tests/functional/qemu_test/decorators.py  | 176 ++++++++-------
 tests/functional/qemu_test/linuxkernel.py |  10 +-
 tests/functional/qemu_test/testcase.py    | 251 +++++++++++-----------
 tests/functional/qemu_test/uncompress.py  |  40 ++--
 tests/functional/qemu_test/utils.py       |  22 +-
 6 files changed, 262 insertions(+), 261 deletions(-)

-- 
2.51.0