Skip to content

Instantly share code, notes, and snippets.

/test.py Secret
Created Dec 18, 2013

Embed
What would you like to do?
from circuits import Component, Event
class fail_event(Event):
pass
class test(Component):
def started(self, thread):
print('started', thread)
self.call(fail_event())
try:
yield self.call(fail_event(), timeout=0)
except:
print('fail event error')
try:
yield self.call(fail_event(), timeout=10)
except:
print('should not be printed')
print('end of try block')
self.stop()
def stopped(self, thread):
print('stopped', thread)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.