New submission from Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue31837>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to