Skip to content

Commit f42fb21

Browse files
committed
Pylint fixes.
1 parent 271655f commit f42fb21

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

debug/testlib.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -952,14 +952,17 @@ def load_excluded_tests(excluded_tests_file, target_name):
952952
return result
953953

954954
target_excludes = {}
955-
with open(excluded_tests_file) as file:
955+
with open(excluded_tests_file, encoding="utf-8") as file:
956956
raw_data = yaml.safe_load(file)
957957
for (target, test_list) in raw_data.items():
958958
if not isinstance(test_list, list):
959-
raise ValueError(f"Target {target!r} does not contain a test list", excluded_tests_file, test_list)
959+
raise ValueError(
960+
f"Target {target!r} does not contain a test list",
961+
excluded_tests_file, test_list)
960962
if not all(isinstance(s, str) for s in test_list):
961-
raise ValueError(f"Not every element in the target test list {target!r} is a string",
962-
excluded_tests_file, test_list)
963+
raise ValueError(
964+
f"Not every element in the target test list {target!r} "
965+
"is a string", excluded_tests_file, test_list)
963966

964967
target_excludes.update(raw_data)
965968

0 commit comments

Comments
 (0)