VTL: VppTestResult: Must implement empty constructor. 43/16843/2
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Wed, 16 Jan 2019 19:12:50 +0000 (11:12 -0800)
committerOle Trøan <otroan@employees.org>
Tue, 22 Jan 2019 10:12:39 +0000 (10:12 +0000)
Subclasses of (unittest.TestResult|unittest.TextTestResult) must implement an empty constructor.

The standard python library unittests depend on the empty constructor.

Change-Id: I6d1bd2e7d6996d85a9da66cb7d40af0ed3c30e2b
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
test/framework.py

index 9d85be7..2a2dfd4 100644 (file)
@@ -1034,7 +1034,8 @@ class VppTestResult(unittest.TestResult):
     core_crash_test_cases_info = set()
     current_test_case_info = None
 
-    def __init__(self, stream, descriptions, verbosity, runner):
+    def __init__(self, stream=None, descriptions=None, verbosity=None,
+                 runner=None):
         """
         :param stream File descriptor to store where to report test results.
             Set to the standard error stream by default.