Skip to content

Commit 3f46746

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

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tests/scripts/check-test-cases.py

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

2828
class Results:
29+
"""Stores file and line information about errors
30+
or warnings in test suites"""
2931
def __init__(self):
3032
self.errors = 0
3133
self.warnings = 0
@@ -41,6 +43,7 @@ def warning(self, file_name, line_number, fmt, *args):
4143
self.warnings += 1
4244

4345
def collect_test_directories():
46+
"""Gets the relative path for the TLS and Crypto test directories."""
4447
if os.path.isdir('tests'):
4548
tests_dir = 'tests'
4649
elif os.path.isdir('suites'):
@@ -55,6 +58,7 @@ def collect_test_directories():
5558
return directories
5659

5760
def check_description(results, seen, file_name, line_number, description):
61+
"""Checks test case descriptions for errors."""
5862
if description in seen:
5963
results.error(file_name, line_number,
6064
'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)