Skip to content

Commit

Permalink
fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
tumb1er committed Jan 31, 2016
1 parent b622fc2 commit 960b148
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,12 @@ def test_read_chunk_without_content_length(self):

def test_read_incomplete_chunk(self):
stream = Stream(b'')

def prepare(data):
f = asyncio.Future(loop=self.loop)
f.set_result(data)
return f

with mock.patch.object(stream, 'read', side_effect=[
prepare(b'Hello, '),
prepare(b'World'),
Expand Down

0 comments on commit 960b148

Please sign in to comment.