Commit 985861aa authored by Denis Bilenko's avatar Denis Bilenko

test__pywsgi.py: use ExpectedException from greentest

parent 6cda48b2
......@@ -590,15 +590,11 @@ class TestInputReadlines(TestInputReadline):
return lines
class ExpectedException(Exception):
pass
class TestError(TestCase):
@staticmethod
def application(env, start_response):
raise ExpectedException
raise greentest.ExpectedException('TestError.application')
@property
def url(self):
......@@ -618,7 +614,7 @@ class TestError_after_start_response(TestError):
@staticmethod
def application(env, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
raise ExpectedException
raise greentest.ExpectedException('TestError_after_start_response.application')
class TestEmptyYield(TestCase):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment