Skip to content

Commit 5fce8ab

Browse files
committed
properly set env var
1 parent 4b31337 commit 5fce8ab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pytest/test_pytest_evaluator_error_handling.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@
2525
from eval_protocol.dataset_logger.dataset_logger import DatasetLogger
2626

2727

28+
@pytest.fixture(autouse=True)
29+
def _force_catch_eval_exceptions(monkeypatch: pytest.MonkeyPatch):
30+
"""
31+
These tests validate the behavior when evaluation exceptions are caught and converted
32+
into evaluation_result/status fields. Ensure the env var is set to disable raising.
33+
"""
34+
monkeypatch.setenv("EP_RAISE_EVAL_EXCEPTIONS", "false")
35+
36+
2837
class TrackingLogger(DatasetLogger):
2938
"""Custom logger that tracks all logged rows for testing."""
3039

0 commit comments

Comments
 (0)