Skip to content

Commit b63447c

Browse files
committed
npm unittest fix ruff
1 parent 275622b commit b63447c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unittests/tools/test_npm_audit_7_plus_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_npm_audit_7_plus_parser_with_many_vuln_has_many_findings(self):
4242
self.assertEqual("@vercel/fun", finding.title)
4343

4444
def test_npm_audit_7_plus_parser_issue_10801(self):
45-
testfile = open(path.join(path.dirname(__file__), "../scans/npm_audit_7_plus/issue_10801.json"))
45+
testfile = open(path.join(path.dirname(__file__), "../scans/npm_audit_7_plus/issue_10801.json"), encoding="utf-8")
4646
parser = NpmAudit7PlusParser()
4747
findings = parser.get_findings(testfile, Test())
4848
testfile.close()

0 commit comments

Comments
 (0)