From f4501f7b1aa272d2aa6e2ccd6036220cf6f04bd9 Mon Sep 17 00:00:00 2001 From: Kurt Griffiths Date: Tue, 12 Mar 2013 16:46:55 -0400 Subject: [PATCH] fix(nose): Comment out detailed-errors to workaround a testtools+nose bug Setting "detailed-errors=1" in setup.cfg causes a bug in testtools to manifest. Trigger: self.assertX(condition), where condition == False. In "testtools/testresult/real.py" the traceback is set to None in _details_to_exc_info(), but the inspect_traceback() method in nose/inspector.py requires a traceback-like object. Change-Id: Ia95fd2176ea0ccc984623b53b3536f995c6db5bb --- setup.cfg | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 2fded5b29..4e3c6b40c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,5 +4,14 @@ cover-html=true cover-erase=true cover-inclusive=true verbosity=2 -detailed-errors=1 + +; Disabled: Causes a bug in testtools to manifest. +; Trigger: self.assertX(condition), where condition == False. +; +; In "testtools/testresult/real.py" the traceback is set to +; None in _details_to_exc_info(), but the inspect_traceback() +; method in nose/inspector.py requires a traceback-like object. +; +; detailed-errors=1 + where=marconi/tests