[pypy-issue] [issue1207] latest Pypy *with JIT* fails with weird error running pep8.py testsuite

Florent Xicluna tracker at bugs.pypy.org
Sat Jul 7 14:52:03 CEST 2012


New submission from Florent Xicluna <florent.xicluna at gmail.com>:

I'm the maintainer of the library "pep8.py".

It runs fine on all versions of Python (2.5 to 3.2) and with Pypy *--jit off*.

However, it fails with a strange error with Pypy JIT.


$ pypy --version
Python 2.7.2 (20258fbf10d0, Jul 03 2012, 01:00:23)
[PyPy 1.9.1-dev0 with GCC 4.2.1]


$ pypy --jit off pep8.py --testsuite testsuite
1247 lines tested: 27 files, 184 test cases.
Test passed.


$ pypy pep8.py --testsuite testsuite

Traceback (most recent call last):
  File "app_main.py", line 51, in run_toplevel
  File "pep8.py", line 1934, in <module>
    _main()
  File "pep8.py", line 1920, in _main
    report = pep8style.check_files()
  File "pep8.py", line 1589, in check_files
    self.input_dir(path)
  File "pep8.py", line 1622, in input_dir
    runner(os.path.join(root, filename))
  File "pep8.py", line 1692, in run_tests
    line_offset=line_offset)
  File "pep8.py", line 1600, in input_file
    return fchecker.check_all(expected=expected, line_offset=line_offset)
  File "pep8.py", line 1343, in check_all
    self.check_logical()
  File "pep8.py", line 1283, in check_logical
    for result in self.run_check(check, argument_names):
  File "pep8.py", line 421, in indentation
    if indent_char == ' ' and indent_level % 4:
TypeError: not all arguments converted during string formatting


You can repeat this with any recent version of pep8.py here:
https://github.com/jcrocholl/pep8

----------
messages: 4557
nosy: flox, pypy-issue
priority: bug
release: 1.9
status: unread
title: latest Pypy *with JIT* fails with weird error running pep8.py testsuite

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1207>
________________________________________


More information about the pypy-issue mailing list