-
-
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
INTERNALERROR> IndexError: list index out of range (Python 3.4) #752
Comments
Original comment by Andrew Gorcester (BitBucket: andrewsg, GitHub: andrewsg): The project is available online, pinned to the offending commit: https://github.com/andrewsg/python-c64/tree/ed738342c1e3f30b19db5b1c878c8c4547435c0d The problematic line is c64.py line 172. Lines prior to that, even though they may follow the exact same pattern, do not cause an error. |
Original comment by Anthon van der Neut (BitBucket: anthon_van_der_neut, GitHub: anthon_van_der_neut): I can confirm this error with this minimal
Fails on 2.7.10, 2.6, 3.3 and 3.4. Inserting 4 spaces before the closing |
Original comment by Daniel Hahler (BitBucket: blueyed, GitHub: blueyed): Here is another case: The code, where the commented "password" line seems to cause the offset error:
|
Original comment by Daniel Hahler (BitBucket: blueyed, GitHub: blueyed): There are several duplicates / similar issues about this: https://bitbucket.org/pytest-dev/pytest/issues?status=new&status=open&q=list%20index%20out%20of%20range |
Original comment by Daniel Hahler (BitBucket: blueyed, GitHub: blueyed): Bisecting pylib shows up this as first bad commit:
https://bitbucket.org/pytest-dev/py/commits/d7d5337ac74a054ad13bc7e28f976d00f051ace3 |
Original comment by Daniel Hahler (BitBucket: blueyed, GitHub: blueyed): The issue in pylib is the following: https://bitbucket.org/pytest-dev/py/issue/55/broken-comment-parsing |
Is there already a solution for this issue? |
I'm getting a similar error message. Here's how I can reproduce it:
|
An even smaller example that reproduces it:
Removing the comment fixes it. |
The issue in pylib (https://bitbucket.org/pytest-dev/py/issue/55/broken-comment-parsing) is fixed and has been released in py 1.4.29. Closing this issue for pytest therefore. |
A bit delayed, but I just came across my workaround for this, in |
Originally reported by: Andrew Gorcester (BitBucket: andrewsg, GitHub: andrewsg)
After changing a line of source inside a dict literal in my project from this:
to this:
py.test started throwing the following error:
I saw #560 with the same error message, but it looks like this is a different issue; at the least, my version is much newer than the patch date for that issue's resolution.
The text was updated successfully, but these errors were encountered: