Issue2286

classification
Title: IllegalArgumentException 'PyString with non-byte value' triggered by test suite of autopep8 1.1.1
Type: crash Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: jeff.allen Nosy List: Arfrever, jeff.allen, zyasoft
Priority: normal Keywords:

Created on 2015-03-11.18:21:18 by Arfrever, last changed 2018-03-23.22:30:08 by jeff.allen.

Messages
msg9618 (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2015-03-11.18:21:17
Used packages:
https://pypi.python.org/pypi/pep8/1.6.2
https://pypi.python.org/pypi/autopep8/1.1.1

$ PYTHONPATH="$(pwd)" jython2.7 test/test_autopep8.py
…
======================================================================
ERROR: test_e501_experimental_with_unicode (__main__.ExperimentalSystemTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_autopep8.py", line 5455, in test_e501_experimental_with_unicode
    fixed = """\
  File "/usr/share/jython-2.7/Lib/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/usr/share/jython-2.7/Lib/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "test/test_autopep8.py", line 5902, in autopep8_context
    yield autopep8.fix_file(filename=filename, options=options)
  File "/tmp/autopep8-1.1.1/autopep8.py", line 2910, in fix_file
    fixed_source = fix_lines(fixed_source, options, filename=filename)
  File "/tmp/autopep8-1.1.1/autopep8.py", line 2890, in fix_lines
    fixed_source = fix.fix()
  File "/tmp/autopep8-1.1.1/autopep8.py", line 533, in fix
    results = _execute_pep8(pep8_options, self.source)
  File "/tmp/autopep8-1.1.1/autopep8.py", line 2434, in _execute_pep8
    checker.check_all()
  File "/usr/share/jython-2.7/Lib/site-packages/pep8.py", line 1572, in check_all
    for token in self.generate_tokens():
  File "/usr/share/jython-2.7/Lib/site-packages/pep8.py", line 1524, in generate_tokens
    self.maybe_check_physical(token)
  File "/usr/share/jython-2.7/Lib/site-packages/pep8.py", line 1524, in generate_tokens
    self.maybe_check_physical(token)
  File "/usr/share/jython-2.7/Lib/site-packages/pep8.py", line 1534, in maybe_check_physical
    self.check_physical(token[4])
  File "/usr/share/jython-2.7/Lib/site-packages/pep8.py", line 1431, in check_physical
    result = self.run_check(check, argument_names)
  File "/usr/share/jython-2.7/Lib/site-packages/pep8.py", line 1419, in run_check
    return check(*arguments)
  File "/usr/share/jython-2.7/Lib/site-packages/pep8.py", line 223, in maximum_line_length
    length = len(line.decode('utf-8'))
  File "/usr/share/jython-2.7/Lib/site-packages/pep8.py", line 223, in maximum_line_length
    length = len(line.decode('utf-8'))
  File "/usr/share/jython-2.7/Lib/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
IllegalArgumentException: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value
…
msg11750 (view) Author: Jeff Allen (jeff.allen) Date: 2018-03-06.19:44:14
This may be telling us something important about our codecs or parser. Keeping at 2.7.2 for now.
History
Date User Action Args
2018-03-23 22:30:08jeff.allensetmilestone: Jython 2.7.2 ->
2018-03-06 19:44:15jeff.allensettitle: 'IllegalArgumentException: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value' triggered by test suite of autopep8 1.1.1 -> IllegalArgumentException 'PyString with non-byte value' triggered by test suite of autopep8 1.1.1
nosy: + jeff.allen
messages: + msg11750
priority: normal
assignee: jeff.allen
components: + Core
type: crash
2015-12-29 23:43:19zyasoftsetmilestone: Jython 2.7.1 -> Jython 2.7.2
2015-04-20 20:53:55zyasoftsetmilestone: Jython 2.7.1
2015-04-19 22:14:55zyasoftsetassignee: zyasoft -> (no value)
2015-03-11 18:33:39zyasoftsetassignee: zyasoft
nosy: + zyasoft
2015-03-11 18:21:18Arfrevercreate