-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
UnboundLocalError: local variable 'end' referenced before assignment #17
Comments
Original comment by BitBucket: blep, GitHub: blep: Hmm, the root of the problem is the inability to report the syntax error: {{{
}}} => missing * * on kwargs. |
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): Actually to be clear: your example failed differently from yours but produced the same exception. i think i fixed at least one case and hope there is no other one. Your example is a bit confusing, to be honest because it contains code that is probably not neccessary. Can you try to install via e.g. easy_install -i http://pypi.testrun.org -U pytest and see if it actually fixes the problem for you? If not, please re-open and provide a more minimal example. Sidenote: it's better to not name your module exactly like a standard library one, in any case. Just use "mycollection" or so to disambiguate. |
Originally reported by: BitBucket: blep, GitHub: blep
I'm not sure what is going on, but I started to get the error below. The full stack and tests are attached.
Environment: Python 3.2b2, Windows XPSP3, py.test 2.0
C:\Python32\lib\site-packages\py-1.4.0-py3.2.egg\py_code\source.py:142: in getstatementrange
E UnboundLocalError: local variable 'end' referenced before assignment
The text was updated successfully, but these errors were encountered: