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): ...@@ -590,15 +590,11 @@ class TestInputReadlines(TestInputReadline):
return lines return lines
class ExpectedException(Exception):
pass
class TestError(TestCase): class TestError(TestCase):
@staticmethod @staticmethod
def application(env, start_response): def application(env, start_response):
raise ExpectedException raise greentest.ExpectedException('TestError.application')
@property @property
def url(self): def url(self):
...@@ -618,7 +614,7 @@ class TestError_after_start_response(TestError): ...@@ -618,7 +614,7 @@ class TestError_after_start_response(TestError):
@staticmethod @staticmethod
def application(env, start_response): def application(env, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')]) start_response('200 OK', [('Content-Type', 'text/plain')])
raise ExpectedException raise greentest.ExpectedException('TestError_after_start_response.application')
class TestEmptyYield(TestCase): 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