Skip to content

Commit 9022f9e

Browse files
fix: set original_pass=False when Java comparator scope is exception
When scope_str == "exception", the original code threw an exception and should not be marked as passed. Consistent with the Python fallback path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fa9d32f commit 9022f9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codeflash/languages/java/comparator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def compare_test_results(
263263
candidate_value=diff.get("candidateValue"),
264264
test_src_code=test_src_code,
265265
candidate_pytest_error=diff.get("candidateError"),
266-
original_pass=True,
266+
original_pass=scope_str != "exception",
267267
candidate_pass=scope_str not in ("missing", "exception"),
268268
original_pytest_error=diff.get("originalError"),
269269
)

0 commit comments

Comments
 (0)