[py-svn] r32183 - py/dist/py/test/rsession
cfbolz at codespeak.net
cfbolz at codespeak.net
Mon Sep 11 18:54:55 CEST 2006
Author: cfbolz
Date: Mon Sep 11 18:54:54 2006
New Revision: 32183
Modified:
py/dist/py/test/rsession/web.py
Log:
don't use decorators in the py-lib (which is supposed to be 2.2 compatible)
Modified: py/dist/py/test/rsession/web.py
==============================================================================
--- py/dist/py/test/rsession/web.py (original)
+++ py/dist/py/test/rsession/web.py Mon Sep 11 18:54:54 2006
@@ -64,26 +64,26 @@
current = current.parent
return None
- @described(retval={"aa":"aa"})
def show_hosts(self):
self.start_event.wait()
return json.write(self.hosts)
+ show_hosts = described(retval={"aa":"aa"})(show_hosts)
- @described(retval={'aa':"aa"})
def show_skip(self, item_name="a"):
return json.write({'item_name':item_name, 'reason':escape(self.skip_reasons[item_name])})
+ show_skip = described(retval={"aa":"aa"})(show_skip)
- @described(retval={'aa':"aa"})
def show_fail(self, item_name="a"):
return json.write({'item_name':item_name, 'traceback':escape(str(self.fail_reasons[item_name]))})
+ show_fail = described(retval={"aa":"aa"})(show_fail)
- @described(retval=[{"aa":"aa"}])
def show_all_statuses(self):
retlist = [self.show_status_change()]
while not self.pending_events.empty():
retlist.append(self.show_status_change())
retval = json.write(retlist)
return retval
+ show_all_statuses = described(retval={"aa":"aa"})(show_all_statuses)
def show_status_change(self):
def add_item(event):
More information about the pytest-commit
mailing list