Skip to content

Commit

Permalink
Fix bad super call in WSGIAdapter constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Crooks committed Sep 14, 2017
1 parent d9186fc commit 52e3eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyriform.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class WSGIAdapter(BaseAdapter):
but not if you are testing client-side behaviour.
'''
def __init__(self, app, extra_environ=None, lint=False):
super(BaseAdapter, self).__init__()
super(WSGIAdapter, self).__init__()
if not isinstance(app, TestApp):
app = TestApp(app, extra_environ=extra_environ, lint=lint)
app.RequestClass = PyriformTestRequest
Expand Down Expand Up @@ -164,7 +164,7 @@ def invoke_request():
result[1] = True # tell the thread we don't want the result
raise Timeout()
if isinstance(result[0], Exception): # pragma: no cover
raise result[0]
raise result[0] # pragma: no cover
return result[0]


Expand Down

0 comments on commit 52e3eb1

Please sign in to comment.