[py-svn] r40739 - in py/trunk/py/test/rsession: . webdata
fijal at codespeak.net
fijal at codespeak.net
Sun Mar 18 23:53:16 CET 2007
Author: fijal
Date: Sun Mar 18 23:53:14 2007
New Revision: 40739
Modified:
py/trunk/py/test/rsession/web.py
py/trunk/py/test/rsession/webdata/source.js
py/trunk/py/test/rsession/webjs.py
Log:
Make FAILED TO LOAD MODULE clickable
Modified: py/trunk/py/test/rsession/web.py
==============================================================================
--- py/trunk/py/test/rsession/web.py (original)
+++ py/trunk/py/test/rsession/web.py Sun Mar 18 23:53:14 2007
@@ -276,7 +276,7 @@
def repr_source(self, relline, source):
lines = []
- for num, line in enumerate(source.split("\n")):
+ for num, line in enumerate(str(source).split("\n")):
if num == relline:
lines.append(">>>>" + line)
else:
@@ -289,7 +289,10 @@
def report_FailedTryiter(self, event):
fullitemname = "/".join(event.item.listnames())
- self.fail_reasons[fullitemname] = ''
+ self.fail_reasons[fullitemname] = self.repr_failure_tblong(
+ event.item, event.excinfo, event.excinfo.traceback)
+ self.stdout[fullitemname] = ''
+ self.stderr[fullitemname] = ''
self.pending_events.put(event)
def report_ItemStart(self, event):
Modified: py/trunk/py/test/rsession/webdata/source.js
==============================================================================
Binary files. No diff available.
Modified: py/trunk/py/test/rsession/webjs.py
==============================================================================
--- py/trunk/py/test/rsession/webjs.py (original)
+++ py/trunk/py/test/rsession/webjs.py Sun Mar 18 23:53:14 2007
@@ -212,10 +212,16 @@
return True
tr = create_elem("tr")
td = create_elem("td")
+ a = create_elem("a")
+ a.setAttribute("href", "javascript:show_traceback('%s')" % (
+ msg['fullitemname'],))
txt = create_text_elem("- FAILED TO LOAD MODULE")
- td.appendChild(txt)
+ a.appendChild(txt)
+ td.appendChild(a)
tr.appendChild(td)
module_part.appendChild(tr)
+ item_name = msg['fullitemname']
+ exported_methods.show_fail(item_name, fail_come_back)
elif msg['type'] == 'SkippedTryiter':
module_part = get_elem(msg['fullitemname'])
if not module_part:
More information about the py-svn
mailing list