Skip to content

Commit

Permalink
Merge pull request #22 from jd/jd/connect-fixture
Browse files Browse the repository at this point in the history
Remove useless usage of lambda
  • Loading branch information
cdent committed Mar 11, 2015
2 parents 5c72f0b + 71ef190 commit d7b4e57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gabbi/fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ def __init__(self, host, port, app):
self.app = app

def start_fixture(self):
wsgi_intercept.add_wsgi_intercept(self.host, self.port,
lambda: self.app())
wsgi_intercept.add_wsgi_intercept(self.host, self.port, self.app)

def stop_fixture(self):
wsgi_intercept.remove_wsgi_intercept(self.host, self.port)
Expand Down

0 comments on commit d7b4e57

Please sign in to comment.