VTL: Add **kwargs to VppTestRunner constructor. 96/16796/3
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Mon, 14 Jan 2019 05:32:37 +0000 (21:32 -0800)
committerDamjan Marion <dmarion@me.com>
Mon, 21 Jan 2019 15:32:51 +0000 (15:32 +0000)
        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>
test/framework.py

index ea637eb..9d85be7 100644 (file)
@@ -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