Skip to content

Commit c0a1e1c

Browse files
committed
Fixing linter issues
1 parent 26e6f44 commit c0a1e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unittests/tools/test_fortify_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_fortify_many_fdr_findings(self):
100100
self.assertEqual(104, finding.line)
101101

102102
def test_fortify_hello_world_fpr_findings(self):
103-
with open(get_unit_tests_scans_path("fortify") / "hello_world.fpr", encoding="utf-8") as testfile:
103+
with (get_unit_tests_scans_path("fortify") / "hello_world.fpr").open(encoding="utf-8") as testfile:
104104
parser = FortifyParser()
105105
findings = parser.get_findings(testfile, Test())
106106
self.assertEqual(4, len(findings))
@@ -133,7 +133,7 @@ def test_fortify_webinspect_4_2_many_findings(self):
133133
self.assertEqual("Medium", finding.severity)
134134

135135
def test_fortify_fpr_suppressed_finding(self):
136-
with open(get_unit_tests_scans_path("fortify") / "fortify_suppressed_with_comments.fpr", encoding="utf-8") as testfile:
136+
with(get_unit_tests_scans_path("fortify") / "fortify_suppressed_with_comments.fpr").open(encoding="utf-8") as testfile:
137137
parser = FortifyParser()
138138
findings = parser.get_findings(testfile, Test())
139139
self.assertEqual(4, len(findings))

0 commit comments

Comments
 (0)