コード例 #1
0
 def func():
     raise greentest.ExpectedException(
         'TestAsyncResultAsLinkTarget.test_set_exception')
コード例 #2
0
 def t1():
     raise greentest.ExpectedException()
コード例 #3
0
ファイル: test__pywsgi.py プロジェクト: zCookie/gevent
 def application(env, start_response):
     start_response('200 OK', [('Content-Type', 'text/plain')])
     yield "hello"
     raise greentest.ExpectedException('TestErrorAfterChunk')
コード例 #4
0
 def application(env, start_response):
     start_response('200 OK', [('Content-Type', 'text/plain')])
     raise greentest.ExpectedException('TestError_after_start_response.application')
コード例 #5
0
 def application(env, start_response):
     raise greentest.ExpectedException('TestError.application')
コード例 #6
0
ファイル: test__hub.py プロジェクト: novator24/zgevent
 def fail():
     raise greentest.ExpectedException(
         'TestExceptionInMainloop.test_sleep/fail')
コード例 #7
0
ファイル: test__http.py プロジェクト: novator24/zgevent
 def handle(self, r):
     raise greentest.ExpectedException('TestException.handle')