diff options
| author | John Snow <jsnow@redhat.com> | 2024-11-01 13:36:58 -0400 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2024-11-25 11:03:14 +0100 |
| commit | d808888429dbdd308e7348cb112ece06d287b87a (patch) | |
| tree | 306e6d07d15d5d5094e5cb846ebf5e00b1905c85 /tests/qemu-iotests/iotests.py | |
| parent | 757dbafe115e4f33782ac59812f37997f5b5ce6c (diff) | |
| download | focaccia-qemu-d808888429dbdd308e7348cb112ece06d287b87a.tar.gz focaccia-qemu-d808888429dbdd308e7348cb112ece06d287b87a.zip | |
iotests: correct resultclass type in ReproducibleTestRunner
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>
Diffstat (limited to 'tests/qemu-iotests/iotests.py')
| -rw-r--r-- | tests/qemu-iotests/iotests.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |