-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest~=4.6: UnboundLocalError: local variable 'letter' referenced before assignment
#7310
Comments
webknjaz
added a commit
to webknjaz/pytest
that referenced
this issue
Jun 3, 2020
5 tasks
based on the content, i'd just backport the full pr |
webknjaz
added a commit
to webknjaz/pytest
that referenced
this issue
Jun 3, 2020
5 tasks
@RonnyPfannschmidt here's an alternative per your suggestion: #7314. |
webknjaz
added a commit
to webknjaz/pytest
that referenced
this issue
Jun 3, 2020
via #7314 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While implementing a test for pytest-dev/pytest-forked#33 I've hit this:
Looking at the repo, it seems to have been fixed on master by @nicoddemus as a part of #6337. But it still persists in the
4.6.x
branch.The fix should be trivial: just add a fallback variable value before if-blocks. No need to backport that whole PR (unless somebody thinks that it should be done, of course).
Ref: #7311.
The text was updated successfully, but these errors were encountered: