Skip to content

Commit

Permalink
Make test more strict
Browse files Browse the repository at this point in the history
Due to how zip() works it would not have noticed
if the expected result differed only by having more list elements.
  • Loading branch information
PhilippWendler committed Jun 7, 2024
1 parent d9589b3 commit 548be0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions benchexec/test_integration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ def assertSameRunResults(self, actual_result_xml, other_result_xml):
)
actual_runs = actual_result.findall("run")
expected_runs = expected_result.findall("run")
self.assertListEqual(
[run.get("name") for run in actual_runs],
[run.get("name") for run in expected_runs],
)
for actual, expected in zip(actual_runs, expected_runs):
self.assertEqual(actual.get("files"), expected.get("files"))
self.assertEqual(actual.get("name"), expected.get("name"))
Expand Down

0 comments on commit 548be0d

Please sign in to comment.