Skip to content

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

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.

1 participant