Skip to content

Commit

Permalink
Update grading.py to handle XFAIL
Browse files Browse the repository at this point in the history
  • Loading branch information
wenting-zhao authored Aug 9, 2024
1 parent 1a6eee3 commit 5b2d7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swebench/harness/grading.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# MARK: Utility functions
def test_passed(case: str, sm: dict[str, str]) -> bool:
return case in sm and sm[case] == TestStatus.PASSED.value
return case in sm and sm[case] in [TestStatus.PASSED.value, TestStatus.XFAIL.value]


def test_failed(case: str, sm: dict[str, str]) -> bool:
Expand Down

0 comments on commit 5b2d7ad

Please sign in to comment.