I get the crash if the first test in a bunch fails.
Elmo Mäntynen wrote:
> Now I got that traceback I have gotten so many times:
>
> Traceback (most recent call last):
> File
> "/home/drayko/Workfolder/Security/Python/cvs/py-dist/py/bin/py.test",
> line 4, in ?
> py.test.cmdline.main()
> File
> "/home/drayko/Workfolder/Security/Python/pypy/pypy-dist2/py/test/cmdline.py",
> line 15, in main
> failures = session.main()
> File
> "/home/drayko/Workfolder/Security/Python/pypy/pypy-dist2/py/test/session.py",
> line 67, in main
> self.footer(colitems)
> File
> "/home/drayko/Workfolder/Security/Python/pypy/pypy-dist2/py/test/terminal/terminal.py",
> line 167, in footer
> self.failures()
> File
> "/home/drayko/Workfolder/Security/Python/pypy/pypy-dist2/py/test/terminal/terminal.py",
> line 262, in failures
> self.repr_failure(colitem, outcome)
> File
> "/home/drayko/Workfolder/Security/Python/pypy/pypy-dist2/py/test/terminal/terminal.py",
> line 280, in repr_failure
> handler(item, excinfo, traceback, lambda : self.repr_out_err(item))
> File
> "/home/drayko/Workfolder/Security/Python/pypy/pypy-dist2/py/test/representation.py",
> line 146, in repr_failure_tbshort
> self.out.line(' File "%s", line %d, in %s' % (
> File
> "/home/drayko/Workfolder/Security/Python/pypy/pypy-dist2/py/code/traceback2.py",
> line 94, in name
> return self.frame.code.raw.co_name
> AttributeError: 'str' object has no attribute 'co_name'
>
> Elmo Mäntynen wrote:
>
>> Of course, now I py.test behaves with --tb=short, might have been my
>> fault after all:).
>>
>> Apparently, all of the stuff below but the first aren't bugs.
>>
>> Elmo
>>
>> Elmo Mäntynen wrote:
>>
>>
>>> Using --tb=short has propably always crashed (with a failing test).
>>>
>>> ...
>>>
>>>
>
>
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev