]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
iotests: reflow ReproducibleTestRunner arguments
authorJohn Snow <jsnow@redhat.com>
Fri, 1 Nov 2024 17:36:57 +0000 (13:36 -0400)
committerKevin Wolf <kwolf@redhat.com>
Mon, 25 Nov 2024 10:03:14 +0000 (11:03 +0100)
Trivial reflow to let the type names breathe.

(I need to add a longer type name.)

Signed-off-by: John Snow <jsnow@redhat.com>
Message-ID: <20241101173700.965776-2-jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/iotests.py

index ea48af4a7b6a2823bdb71c99c0ee93ca3a085465..673bbcd3563b11327ec5cf661ac0ef946e0ac9eb 100644 (file)
@@ -1614,10 +1614,13 @@ class ReproducibleStreamWrapper:
         self.stream.write(arg)
 
 class ReproducibleTestRunner(unittest.TextTestRunner):
-    def __init__(self, stream: Optional[TextIO] = None,
-                 resultclass: Type[unittest.TestResult] =
-                 ReproducibleTestResult,
-                 **kwargs: Any) -> None:
+    def __init__(
+        self,
+        stream: Optional[TextIO] = None,
+        resultclass: Type[unittest.TestResult] =
+        ReproducibleTestResult,
+        **kwargs: Any
+    ) -> None:
         rstream = ReproducibleStreamWrapper(stream or sys.stdout)
         super().__init__(stream=rstream,           # type: ignore
                          descriptions=True,