Skip to content

Commit ca08460

Browse files
authored
fix: windows helper script test (fixes #1264) (#1594)
1 parent 88dcc1a commit ca08460

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.github/workflows/testing.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ jobs:
189189
--ignore=test/test_cli.py
190190
--ignore=test/test_cvedb.py
191191
--ignore=test/test_requirements.py
192-
--ignore=test/test_helper_script.py
193192
- name: Run synchronous tests
194193
run: >
195194
pytest -v

cve_bin_tool/helper_script.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,7 @@ def parse_filename(self, filename):
150150
"""
151151

152152
# resolving directory names
153-
if sys.platform == "win32":
154-
filename = filename.split("\\")[-1]
155-
else:
156-
filename = filename.split("/")[-1]
153+
filename = filename.split("\\")[-1].split("/")[-1]
157154

158155
# if extractable, then parsing for different types of files accordingly
159156
if self.extractor.can_extract(filename):

0 commit comments

Comments
 (0)