Skip to content

Fix bug in preprocess_fn codepath#420

Draft
RNHTTR wants to merge 2 commits intoeval-protocol:mainfrom
RNHTTR:main
Draft

Fix bug in preprocess_fn codepath#420
RNHTTR wants to merge 2 commits intoeval-protocol:mainfrom
RNHTTR:main

Conversation

@RNHTTR
Copy link

@RNHTTR RNHTTR commented Jan 24, 2026

When passing a preprocess_fn to the @evaluation_test decorator, it fails with the following error:

            if preprocess_fn:
>               if not data_loaders:
                       ^^^^^^^^^^^^
E               UnboundLocalError: cannot access local variable 'data_loaders' where it is not associated with a value

.venv/lib/python3.12/site-packages/eval_protocol/pytest/evaluation_test.py:350: UnboundLocalError

I don't think there's a codepath where data_loaders exists here.

Python 3.12
eval-protocol==0.3.0

Putting in draft until I can sort out the test suite

RNHTTR and others added 2 commits January 23, 2026 21:41
When passing a preprocess_fn to the `@evaluation_test` decorator, it fails with the following error:

```
            if preprocess_fn:
>               if not data_loaders:
                       ^^^^^^^^^^^^
E               UnboundLocalError: cannot access local variable 'data_loaders' where it is not associated with a value

.venv/lib/python3.12/site-packages/eval_protocol/pytest/evaluation_test.py:350: UnboundLocalError
```

Python 3.12
eval-protocol==0.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants