VTL: Add **kwargs to VppTestRunner constructor.
Subclasses should accept **kwargs to ensure compatibility as the interface changes. https://github.com/python/cpython/blob/master/Lib/unittest/runner.py#L133 Change-Id: Ia64ffd88899d207a5422f066700d2f7f9c77622e Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
This commit is contained in:

committed by
Damjan Marion

parent
955ee28028
commit
9889402b79
@ -1279,12 +1279,12 @@ class VppTestRunner(unittest.TextTestRunner):
|
||||
|
||||
def __init__(self, keep_alive_pipe=None, descriptions=True, verbosity=1,
|
||||
result_pipe=None, failfast=False, buffer=False,
|
||||
resultclass=None, print_summary=True):
|
||||
resultclass=None, print_summary=True, **kwargs):
|
||||
# ignore stream setting here, use hard-coded stdout to be in sync
|
||||
# with prints from VppTestCase methods ...
|
||||
super(VppTestRunner, self).__init__(sys.stdout, descriptions,
|
||||
verbosity, failfast, buffer,
|
||||
resultclass)
|
||||
resultclass, **kwargs)
|
||||
KeepAliveReporter.pipe = keep_alive_pipe
|
||||
|
||||
self.orig_stream = self.stream
|
||||
|
Reference in New Issue
Block a user