Skip to content

Commit

Permalink
test: fix ruff complaints about ambiguous variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
whot committed Sep 2, 2024
1 parent d26efbb commit fb95bd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/test_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def has_item(self, id: str, classes: Optional[List[str]] = None):
def is_autogenerated(svg_filename: Path):
tabletfile = datadir() / svg_filename.name.replace(".svg", ".tablet")
return (
any("autogenerated" in l for l in open(tabletfile))
any("autogenerated" in t for t in open(tabletfile))
if tabletfile.exists()
else False
)
Expand Down
6 changes: 3 additions & 3 deletions test/test_udev_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def test_hwdb_files(tablet):
assert stdout, f"No output recorded for query {query}"
logging.debug(stdout)
props = {}
for l in filter(lambda l: len(l) > 1, stdout.split("\n")):
print(l)
k, v = l.split("=")
for line in filter(lambda line: len(line) > 1, stdout.split("\n")):
print(line)
k, v = line.split("=")
props[k] = v

assert "ID_INPUT" in props
Expand Down

0 comments on commit fb95bd7

Please sign in to comment.