You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bpo-9974: tokenizer.untokenize not invariant with line continuations
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2016-04-23.20:47:04.656>created_at=<Date2012-05-03.15:42:20.922>labels= ['type-bug']
title='PEP 414 installation hook fails with an AssertionError'updated_at=<Date2016-04-23.20:47:04.656>user='https://github.com/vsajip'
I'm not sure if I've done something wrong, but I get an AssertionError when trying to run the tokenizer on a Python file from the Django source. The gist at https://gist.github.com/1977558 has the files concerned:
test_tokenize.py - the script which fails
tokenize_example.py - the file being tokenized and untokenized. This is from the Django source: django/extras/csrf_migration_helper.py
tokenizer.py - your tokenize module, I renamed it because I was working in /tmp and didn't want to import the Python 3.2 stdlib's tokenize.py
The test output shows that the tokenize_example module imports OK in Python 2.7.2, but running the test_tokenize script on it with Python3.2 fails with an AssertionError.
I did some more testing, there are 131 failures in the Django source tree (all look like the same AssertionError).
N.B. I posted this to your GitHub repo where you published the hook.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: