mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
9a5d135267
commit
87e4d4a205
5 changed files with 29 additions and 27 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue