diff options
author | Emanuele Giuseppe Esposito <eesposit@redhat.com> | 2021-10-08 02:28:20 -0400 |
---|---|---|
committer | Hanna Reitz <hreitz@redhat.com> | 2021-11-02 12:47:51 +0100 |
commit | 87e4d4a205505cb21970773bbf830df699207587 (patch) | |
tree | b2c13c8ea1f0a0abe8a09ad999eea25f94216a98 /tests/qemu-iotests/iotests.py | |
parent | 9a5d1352678440656c09fe4f6adc1020beebc0fa (diff) | |
download | qemu-87e4d4a205505cb21970773bbf830df699207587.zip qemu-87e4d4a205505cb21970773bbf830df699207587.tar.gz qemu-87e4d4a205505cb21970773bbf830df699207587.tar.bz2 |
pylint: fix errors and warnings generated by tests/qemu-iotests/297
Test 297 in tests/qemu-iotests currently fails: pylint has
learned new things to check, or we simply missed them.
All fixes in this patch are related to additional spaces used
or wrong indentation. No functional change intended.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20211008062821.1010967-2-eesposit@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/iotests.py')
-rw-r--r-- | tests/qemu-iotests/iotests.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index e2f9d87..83bfedb 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -621,7 +621,7 @@ class VM(qtest.QEMUQtestMachine): super()._post_shutdown() if not qemu_valgrind or not self._popen: return - valgrind_filename = f"{test_dir}/{self._popen.pid}.valgrind" + valgrind_filename = f"{test_dir}/{self._popen.pid}.valgrind" if self.exitcode() == 99: with open(valgrind_filename, encoding='utf-8') as f: print(f.read()) @@ -1363,8 +1363,9 @@ class ReproducibleStreamWrapper: class ReproducibleTestRunner(unittest.TextTestRunner): def __init__(self, stream: Optional[TextIO] = None, - resultclass: Type[unittest.TestResult] = ReproducibleTestResult, - **kwargs: Any) -> None: + resultclass: Type[unittest.TestResult] = + ReproducibleTestResult, + **kwargs: Any) -> None: rstream = ReproducibleStreamWrapper(stream or sys.stdout) super().__init__(stream=rstream, # type: ignore descriptions=True, |