mirror of https://github.com/xemu-project/xemu.git
iotests: reflow ReproducibleTestRunner arguments
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>
This commit is contained in:
parent
b62e82be06
commit
757dbafe11
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue