Author: faide
Date: Sat Nov 22 15:19:29 2008
New Revision: 5745
URL: http://trac.turbogears.org/changeset/5745
Log:
Adding more info in the warning message from the tosca tests
Modified:
branches/1.1/turbogears/tests/test_toscawidgets.py
Modified: branches/1.1/turbogears/tests/test_toscawidgets.py
==============================================================================
--- branches/1.1/turbogears/tests/test_toscawidgets.py (original)
+++ branches/1.1/turbogears/tests/test_toscawidgets.py Sat Nov 22 15:19:29 2008
@@ -9,10 +9,10 @@
from tw.api import (CSSLink, CSSSource, JSLink, JSSource, WidgetsList,
locations as tw_locations)
from tw.forms import TableForm, TextField
-except ImportError:
+except ImportError, e:
import warnings
warnings.warn("ToscaWidgets not installed. Can not perform TG integration "
- "unit tests!")
+ "unit tests!: %s" % e)
else:
css_link = CSSLink(modname="turbogears.tests", filename="foo.css")
css_src = CSSSource("body {font-size: 1.em;}")