[New-bugs-announce] [issue31837] ParseError in test_all_project_files()
Serhiy Storchaka
report at bugs.python.org
Sat Oct 21 13:08:02 EDT 2017
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
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)))
warnings.warn('ParseError on file %s (%s)' % (filepath, err))
/home/serhiy/py/cpython/Lib/lib2to3/tests/test_parser.py:415: UserWarning: ParseError on file /home/serhiy/py/cpython/Lib/lib2to3/tests/pytree_idempotency.py (bad input: type=22, value='=', context=('', (49, 33)))
warnings.warn('ParseError on file %s (%s)' % (filepath, err))
ParseError is raised by lines like:
print("Use --help to show usage.", file=sys.stderr)
Seems "from __future__ import print_function" doesn't work.
----------
components: 2to3 (2.x to 3.x conversion tool), Tests
messages: 304715
nosy: benjamin.peterson, serhiy.storchaka
priority: normal
severity: normal
status: open
title: ParseError in test_all_project_files()
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31837>
_______________________________________
More information about the New-bugs-announce
mailing list