Stack trace still has too many levels of stack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Fix Released
|
Medium
|
Jonathan Lange |
Bug Description
Running Version: 0.9.11+
=======
FAIL: tests.test_
-------
Traceback (most recent call last):
File "/home/
self.
File "/home/
self.
File "/home/
raise MismatchError(
MismatchError: <function <lambda> at 0x1487488> returned <devportalbinar
id=26, tests=45, failures=8
Only the top-most level should be present in the error message.
Related branches
- testtools committers: Pending requested
-
Diff: 119 lines (+61/-16)2 files modifiedtesttools/testresult/real.py (+41/-16)
testtools/tests/test_testresult.py (+20/-0)
tags: | added: stack |
tags: |
added: traceback removed: stack |
Changed in testtools: | |
status: | Triaged → In Progress |
assignee: | nobody → Jonathan Lange (jml) |
Changed in testtools: | |
status: | In Progress → Fix Committed |
milestone: | none → next |
Changed in testtools: | |
status: | Fix Committed → Fix Released |
Turns out this is because of this code in Python's unittest:
if exctype is test.failureExc eption:
And because we are raising MismatchErrors for most of our asserts.