diff --git a/_pytest/assertion/newinterpret.py b/_pytest/assertion/newinterpret.py index 0fdecdd91..2696abda7 100644 --- a/_pytest/assertion/newinterpret.py +++ b/_pytest/assertion/newinterpret.py @@ -65,7 +65,7 @@ def getfailure(e): value = e.cause[1] if str(value): lines = explanation.split('\n') - lines[0] += " << %s" % (e.value,) + lines[0] += " << %s" % (value,) explanation = '\n'.join(lines) text = "%s: %s" % (e.cause[0].__name__, explanation) if text.startswith('AssertionError: assert '):