Skip to content

Commit b4c9834

Browse files
zoobaAA-Turner
andauthored
Apply suggestions from code review
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 19259cb commit b4c9834

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def get_installs(self):
144144
return self.installs
145145

146146
def get_install_to_run(self, tag):
147-
company, _, tag = (tag.replace("/", "\\")).rpartition("\\")
147+
company, _, tag = tag.replace("/", "\\").rpartition("\\")
148148
return [i for i in self.installs
149149
if i["tag"] == tag and (not company or i["company"] == company)][0]
150150

tests/test_pathutils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ def test_path_match():
77
assert p.match("*.exe")
88
assert p.match("python*")
99
assert p.match("python*.exe")
10+
assert p.match("python3.12*.exe")
1011
assert p.match("*hon3.*")
1112
assert p.match("p*3.*.exe")
1213

0 commit comments

Comments
 (0)