[Pytest-commit] Issue #756: internal error building traceback (pytest-dev/pytest)

Alex Gaynor issues-reply at bitbucket.org
Wed May 27 02:12:44 CEST 2015


New issue 756: internal error building traceback
https://bitbucket.org/pytest-dev/pytest/issue/756/internal-error-building-traceback

Alex Gaynor:

The full traceback:

```
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/main.py", line 84, in wrap_session
INTERNALERROR>     doit(config, session)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/main.py", line 121, in _main
INTERNALERROR>     config.hook.pytest_collection(session=session)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/core.py", line 521, in __call__
INTERNALERROR>     return self._docall(self.methods, kwargs)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/core.py", line 528, in _docall
INTERNALERROR>     firstresult=self.firstresult).execute()
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/core.py", line 394, in execute
INTERNALERROR>     res = method(*args)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/main.py", line 125, in pytest_collection
INTERNALERROR>     return session.perform_collect()
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/main.py", line 550, in perform_collect
INTERNALERROR>     items = self._perform_collect(args, genitems)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/main.py", line 585, in _perform_collect
INTERNALERROR>     self.items.extend(self.genitems(node))
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/main.py", line 722, in genitems
INTERNALERROR>     rep = collect_one_node(node)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/runner.py", line 411, in collect_one_node
INTERNALERROR>     rep = ihook.pytest_make_collect_report(collector=collector)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/core.py", line 521, in __call__
INTERNALERROR>     return self._docall(self.methods, kwargs)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/core.py", line 528, in _docall
INTERNALERROR>     firstresult=self.firstresult).execute()
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/core.py", line 393, in execute
INTERNALERROR>     return wrapped_call(method(*args), self.execute)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/core.py", line 109, in wrapped_call
INTERNALERROR>     wrap_controller.send(call_outcome)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/capture.py", line 110, in pytest_make_collect_report
INTERNALERROR>     rep = outcome.get_result()
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/core.py", line 138, in get_result
INTERNALERROR>     py.builtin._reraise(*ex)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/core.py", line 123, in __init__
INTERNALERROR>     self.result = func()
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/core.py", line 394, in execute
INTERNALERROR>     res = method(*args)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/runner.py", line 296, in pytest_make_collect_report
INTERNALERROR>     errorinfo = collector.repr_failure(call.excinfo)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/main.py", line 433, in repr_failure
INTERNALERROR>     return self._repr_failure_py(excinfo, style="short")
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/_pytest/main.py", line 410, in _repr_failure_py
INTERNALERROR>     style=style, tbfilter=tbfilter)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/py/_code/code.py", line 412, in getrepr
INTERNALERROR>     return fmt.repr_excinfo(self)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/py/_code/code.py", line 590, in repr_excinfo
INTERNALERROR>     reprtraceback = self.repr_traceback(excinfo)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/py/_code/code.py", line 582, in repr_traceback
INTERNALERROR>     reprentry = self.repr_traceback_entry(entry, einfo)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/py/_code/code.py", line 543, in repr_traceback_entry
INTERNALERROR>     s = self.get_source(source, line_index, excinfo, short=short)
INTERNALERROR>   File "/home/jenk/workspace/cryptography-pull-request-builder/TOXENV/py27/label/centos64/cryptography/.tox/py27/lib/python2.7/site-packages/py/_code/code.py", line 480, in get_source
INTERNALERROR>     lines.append(space_prefix + source.lines[line_index].strip())
INTERNALERROR> IndexError: list index out of range
```

https://jenkins.cryptography.io/job/cryptography-pull-request-builder/3664/TOXENV=py27,label=centos64/console is the actual log. I believe that contains all the details needed to reproduce, if there's any questions, let me know.




More information about the pytest-commit mailing list