aboutsummaryrefslogtreecommitdiff
path: root/debug/testlib.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2023-06-27 09:31:43 -0700
committerTim Newsome <tim@sifive.com>2023-06-27 09:31:43 -0700
commitf42fb21ed494cfea32ea40ebff8d682bcd2b41bb (patch)
tree8dd1288c834c568d558fd6054f4c9287d6526ed8 /debug/testlib.py
parent271655ffb6f93fbcf4fbd9ad995aabf206a31777 (diff)
downloadriscv-tests-f42fb21ed494cfea32ea40ebff8d682bcd2b41bb.zip
riscv-tests-f42fb21ed494cfea32ea40ebff8d682bcd2b41bb.tar.gz
riscv-tests-f42fb21ed494cfea32ea40ebff8d682bcd2b41bb.tar.bz2
Pylint fixes.
Diffstat (limited to 'debug/testlib.py')
-rw-r--r--debug/testlib.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index 1899b20..fc7e9af 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -952,14 +952,17 @@ def load_excluded_tests(excluded_tests_file, target_name):
return result
target_excludes = {}
- with open(excluded_tests_file) as file:
+ with open(excluded_tests_file, encoding="utf-8") as file:
raw_data = yaml.safe_load(file)
for (target, test_list) in raw_data.items():
if not isinstance(test_list, list):
- raise ValueError(f"Target {target!r} does not contain a test list", excluded_tests_file, test_list)
+ raise ValueError(
+ f"Target {target!r} does not contain a test list",
+ excluded_tests_file, test_list)
if not all(isinstance(s, str) for s in test_list):
- raise ValueError(f"Not every element in the target test list {target!r} is a string",
- excluded_tests_file, test_list)
+ raise ValueError(
+ f"Not every element in the target test list {target!r} "
+ "is a string", excluded_tests_file, test_list)
target_excludes.update(raw_data)