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
ParseError in test_all_project_files() #76018
Comments
test_all_project_files() in test_lib2to3 emits warnings in verbose mode. /home/serhiy/py/cpython/Lib/lib2to3/tests/test_parser.py:415: UserWarning: ParseError on file /home/serhiy/py/cpython/Lib/lib2to3/main.py (bad input: type=22, value='=', context=('', (130, 38))) ParseError is raised by lines like: print("Use --help to show usage.", file=sys.stderr) Seems "from __future__ import print_function" doesn't work. |
The warnings were introduced with bpo-13125 and this was fixed with bpo-30117 . I verified it as below : ➜ cpython git:(master) git checkout 14e976e~1 # Fixed commit ➜ cpython git:(14e976e) time ./python.exe -I -S -m test.regrtest -vv test_import test_lib2to3 >/dev/null The test_import warning is also not reproducible with master as of now I will find the necessary commit and reply back in bpo-28655. As part of triaging I am closing this as duplicate with bpo-30117 as superseder which has the fix. Feel free to reopen this if needed. Thanks |
Thanks Karthikeyan! |
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: