[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/8] iotests: correct resultclass type in ReproducibleTestRunner
From: |
Kevin Wolf |
Subject: |
[PULL 4/8] iotests: correct resultclass type in ReproducibleTestRunner |
Date: |
Thu, 14 Nov 2024 17:56:53 +0100 |
From: John Snow <jsnow@redhat.com>
I have a vague memory that I suggested this base class to Vladimir and
said "Maybe someday it will break, and I'll just fix it then." Guess
that's today.
Fixes various mypy errors in the "make check-tox" python test for at
least Python3.8; seemingly requires a fairly modern mypy and/or Python
base version to trigger.
Signed-off-by: John Snow <jsnow@redhat.com>
Message-ID: <20241101173700.965776-3-jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
tests/qemu-iotests/iotests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 673bbcd356..19817c7353 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -1617,7 +1617,7 @@ class ReproducibleTestRunner(unittest.TextTestRunner):
def __init__(
self,
stream: Optional[TextIO] = None,
- resultclass: Type[unittest.TestResult] =
+ resultclass: Type[unittest.TextTestResult] =
ReproducibleTestResult,
**kwargs: Any
) -> None:
--
2.47.0
- [PULL 0/8] Block layer patches, Kevin Wolf, 2024/11/14
- [PULL 1/8] migration: Check current_migration in migration_is_running(), Kevin Wolf, 2024/11/14
- [PULL 2/8] parallels: fix possible int overflow, Kevin Wolf, 2024/11/14
- [PULL 3/8] iotests: reflow ReproducibleTestRunner arguments, Kevin Wolf, 2024/11/14
- [PULL 6/8] python: silence pylint raising-non-exception error, Kevin Wolf, 2024/11/14
- [PULL 4/8] iotests: correct resultclass type in ReproducibleTestRunner,
Kevin Wolf <=
- [PULL 8/8] vl: use qmp_device_add() in qemu_create_cli_devices(), Kevin Wolf, 2024/11/14
- [PULL 5/8] python: disable too-many-positional-arguments warning, Kevin Wolf, 2024/11/14
- [PULL 7/8] qdev-monitor: avoid QemuOpts in QMP device_add, Kevin Wolf, 2024/11/14
- Re: [PULL 0/8] Block layer patches, Peter Maydell, 2024/11/15