Skip to content

Commit e121bb8

Browse files
committed
Fix some pylint warnings
1 parent 795c6ba commit e121bb8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/scripts/check-test-cases.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import sys
2727

2828
class Results:
29+
"""Store file and line information about errors or warnings in test suites."""
2930
def __init__(self):
3031
self.errors = 0
3132
self.warnings = 0
@@ -41,6 +42,7 @@ def warning(self, file_name, line_number, fmt, *args):
4142
self.warnings += 1
4243

4344
def collect_test_directories():
45+
"""Gets the relative path for the TLS and Crypto test directories."""
4446
if os.path.isdir('tests'):
4547
tests_dir = 'tests'
4648
elif os.path.isdir('suites'):
@@ -55,6 +57,7 @@ def collect_test_directories():
5557
return directories
5658

5759
def check_description(results, seen, file_name, line_number, description):
60+
"""Checks test case descriptions for errors."""
5861
if description in seen:
5962
results.error(file_name, line_number,
6063
'Duplicate description (also line {})',

tests/scripts/mbedtls_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,10 @@ def run_test(self, name, function_id, dependencies, args):
310310

311311
param_bytes, length = self.test_vector_to_bytes(function_id,
312312
dependencies, args)
313-
self.send_kv(''.join('{:02x}'.format(x) for x in length), ''.join('{:02x}'.format(x) for x in param_bytes))
313+
self.send_kv(
314+
''.join('{:02x}'.format(x) for x in length),
315+
''.join('{:02x}'.format(x) for x in param_bytes)
316+
)
314317

315318
@staticmethod
316319
def get_result(value):

0 commit comments

Comments
 (0)