Skip to content

Commit

Permalink
Remove yield in the fixture which depends on a higher version of pytest.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuwch committed Jun 28, 2017
1 parent 15c3f46 commit 5b427bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/client/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ def random_payload():
def server():
server = MessageServer((localhost, echo_port))
server.start() # Wait until the server is started
yield server # provide the fixture value
print("teardown server")
server.shutdown
return server
# yield server # provide the fixture value
# print("teardown server")
# server.shutdown()

def test_request(server):
''' Simple test for basic functions '''
Expand Down

0 comments on commit 5b427bd

Please sign in to comment.