mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-29 21:33:02 +00:00
analyze_outcomes: keep print_line() method non-static
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
f6f64cfd81
commit
8070dbec6b
@ -23,18 +23,18 @@ class Results:
|
||||
self.warning_count = 0
|
||||
|
||||
def info(self, fmt, *args, **kwargs):
|
||||
self.print_line('Info: ' + fmt, *args, **kwargs)
|
||||
self._print_line('Info: ' + fmt, *args, **kwargs)
|
||||
|
||||
def error(self, fmt, *args, **kwargs):
|
||||
self.error_count += 1
|
||||
self.print_line('Error: ' + fmt, *args, **kwargs)
|
||||
self._print_line('Error: ' + fmt, *args, **kwargs)
|
||||
|
||||
def warning(self, fmt, *args, **kwargs):
|
||||
self.warning_count += 1
|
||||
self.print_line('Warning: ' + fmt, *args, **kwargs)
|
||||
self._print_line('Warning: ' + fmt, *args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def print_line(fmt, *args, **kwargs):
|
||||
def _print_line(fmt, *args, **kwargs):
|
||||
sys.stderr.write(fmt + '\n', *args, **kwargs)
|
||||
|
||||
class TestCaseOutcomes:
|
||||
|
Loading…
x
Reference in New Issue
Block a user